copyToRemote should return True when the remote already has the key

This got broken in commit e9238e9588.
I observed a key that had been copied to a remote, but the location
log was out of date, and due to this bug, git annex transferkey failed
and so the file could not be dropped when it was moved to an archive
directory.
This commit is contained in:
Joey Hess 2013-03-10 17:54:27 -04:00
parent b889721afd
commit 69ab9701eb

View file

@ -355,7 +355,7 @@ copyToRemote r key file p
u <- getUUID
-- run copy from perspective of remote
liftIO $ onLocal (repo r) $ ifM (Annex.Content.inAnnex key)
( return False
( return True
, do
ensureInitialized
download u key file noRetry $