This commit is contained in:
Joey Hess 2011-04-08 20:55:22 -04:00
parent 3650f42bcf
commit c253d07a82
2 changed files with 3 additions and 5 deletions

View file

@ -107,7 +107,7 @@ retrieve bupremote k f = do
_ -> return False
case ret of
Right r -> return r
Left e -> return False
Left _ -> return False
remove :: Key -> Annex Bool
remove _ = do

View file

@ -57,9 +57,7 @@ gen r u _ = do
u' <- getUUID r'
let defcst = if not $ Git.repoIsUrl r
then cheapRemoteCost
else expensiveRemoteCost
let defcst = if cheap then cheapRemoteCost else expensiveRemoteCost
cst <- remoteCost r' defcst
return $ Remote {
@ -70,7 +68,7 @@ gen r u _ = do
retrieveKeyFile = copyFromRemote r',
removeKey = dropKey r',
hasKey = inAnnex r',
hasKeyCheap = not (Git.repoIsUrl r'),
hasKeyCheap = cheap,
config = Nothing
}