diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-01 19:10:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-01 19:11:27 -0400 |
commit | 971ab27e7820a3228f71dd42f3e870c0fc2f4345 (patch) | |
tree | f54a3fed5d3a161c5e6caff8954002f830ec8eed /Backend | |
parent | 80efafe4960e0fb33d1e6783bd34eaf459febea1 (diff) |
better types allowed breaking module dep loop
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/File.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Backend/File.hs b/Backend/File.hs index 58506c861..543f02af7 100644 --- a/Backend/File.hs +++ b/Backend/File.hs @@ -21,7 +21,6 @@ import Data.String.Utils import BackendClass import LocationLog import qualified Remote -import qualified RemoteUtils import qualified GitRepo as Git import Content import qualified Annex @@ -54,7 +53,7 @@ dummyStore _ _ = return True - and copy it to here. -} copyKeyFile :: Key -> FilePath -> Annex Bool copyKeyFile key file = do - (remotes, _) <- RemoteUtils.keyPossibilities key + (remotes, _) <- Remote.keyPossibilities key if null remotes then do showNote "not available" @@ -97,7 +96,7 @@ checkRemoveKey key numcopiesM = do if force || numcopiesM == Just 0 then return True else do - (remotes, trusteduuids) <- RemoteUtils.keyPossibilities key + (remotes, trusteduuids) <- Remote.keyPossibilities key untrusteduuids <- trustGet UnTrusted let tocheck = Remote.remotesWithoutUUID remotes (trusteduuids++untrusteduuids) numcopies <- getNumCopies numcopiesM |