diff options
author | 2014-12-11 12:47:57 -0400 | |
---|---|---|
committer | 2014-12-11 12:47:57 -0400 | |
commit | bc0bf97b20c48e1d1a35d25e2e76a311c102438c (patch) | |
tree | 05934001ff6b3060cb477a1bd017316827eb050b /Command/ReKey.hs | |
parent | 7f5e752b41b559bce358a9d6a053a7b195706e80 (diff) |
let url claims optionally include a suggested filename
Diffstat (limited to 'Command/ReKey.hs')
-rw-r--r-- | Command/ReKey.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/ReKey.hs b/Command/ReKey.hs index 5dadf4e60..a0348d858 100644 --- a/Command/ReKey.hs +++ b/Command/ReKey.hs @@ -16,6 +16,7 @@ import qualified Command.Add import Logs.Web import Logs.Location import Utility.CopyFile +import Annex.URLClaim import qualified Remote cmd :: [Command] @@ -63,7 +64,7 @@ cleanup file oldkey newkey = do -- the new key as well. urls <- getUrls oldkey forM_ urls $ \url -> do - r <- Remote.claimingUrl url + r <- fst <$> urlClaim url setUrlPresent (Remote.uuid r) newkey url -- Update symlink to use the new key. |