variable name

This commit is contained in:
Joey Hess 2012-02-17 00:21:35 -04:00
parent f3c75b601f
commit 1ed5e4d9e3

View file

@ -46,9 +46,9 @@ perform file oldkey newkey = do
{- Make a hard link to the old key content, to avoid wasting disk space. -} {- Make a hard link to the old key content, to avoid wasting disk space. -}
linkKey :: Key -> Key -> Annex Bool linkKey :: Key -> Key -> Annex Bool
linkKey oldkey newkey = getViaTmpUnchecked newkey $ \t -> do linkKey oldkey newkey = getViaTmpUnchecked newkey $ \tmp -> do
src <- inRepo $ gitAnnexLocation oldkey src <- inRepo $ gitAnnexLocation oldkey
liftIO $ unlessM (doesFileExist t) $ createLink src t liftIO $ unlessM (doesFileExist tmp) $ createLink src tmp
return True return True
cleanup :: FilePath -> Key -> Key -> CommandCleanup cleanup :: FilePath -> Key -> Key -> CommandCleanup