let url claims optionally include a suggested filename
This commit is contained in:
parent
7c9149a44f
commit
85df9c30e9
11 changed files with 67 additions and 26 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue