summaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-01 17:49:37 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-01 17:57:31 -0400
commita8fb97d2ce8e75b36b8e1572a83efd341e67d43e (patch)
treeab24a8af581281ff8b006309acfb4000317ad072 /Backend
parent7a3d9d8c2e2bd53d0d4290e99186c6e37f18456d (diff)
Add --trust, --untrust, and --semitrust options.
Diffstat (limited to 'Backend')
-rw-r--r--Backend/File.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Backend/File.hs b/Backend/File.hs
index 543f02af7..58506c861 100644
--- a/Backend/File.hs
+++ b/Backend/File.hs
@@ -21,6 +21,7 @@ import Data.String.Utils
import BackendClass
import LocationLog
import qualified Remote
+import qualified RemoteUtils
import qualified GitRepo as Git
import Content
import qualified Annex
@@ -53,7 +54,7 @@ dummyStore _ _ = return True
- and copy it to here. -}
copyKeyFile :: Key -> FilePath -> Annex Bool
copyKeyFile key file = do
- (remotes, _) <- Remote.keyPossibilities key
+ (remotes, _) <- RemoteUtils.keyPossibilities key
if null remotes
then do
showNote "not available"
@@ -96,7 +97,7 @@ checkRemoveKey key numcopiesM = do
if force || numcopiesM == Just 0
then return True
else do
- (remotes, trusteduuids) <- Remote.keyPossibilities key
+ (remotes, trusteduuids) <- RemoteUtils.keyPossibilities key
untrusteduuids <- trustGet UnTrusted
let tocheck = Remote.remotesWithoutUUID remotes (trusteduuids++untrusteduuids)
numcopies <- getNumCopies numcopiesM