summaryrefslogtreecommitdiff
path: root/Command/ReKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/ReKey.hs')
-rw-r--r--Command/ReKey.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Command/ReKey.hs b/Command/ReKey.hs
index d14edb06d..bc4a9fac9 100644
--- a/Command/ReKey.hs
+++ b/Command/ReKey.hs
@@ -14,6 +14,7 @@ import Types.Key
import Annex.Content
import qualified Command.Add
import Logs.Web
+import Logs.Location
import Config
import Utility.CopyFile
@@ -70,4 +71,6 @@ cleanup file oldkey newkey = do
-- Update symlink to use the new key.
liftIO $ removeFile file
- Command.Add.cleanup file newkey True
+ Command.Add.addLink file newkey True
+ logStatus newkey InfoPresent
+ return True