summaryrefslogtreecommitdiff
path: root/Command/Import.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-10-09 14:57:32 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-10-09 14:57:32 -0400
commitd6831bd8f2bd4e4c518d0779895c990268c17777 (patch)
tree595f33bf3a8ec7a5ce1a2d026c0f2a9dddece77f /Command/Import.hs
parent4f9957f5342c58adf5b406122b6a8157352ab89b (diff)
verify local copy of content with locking
Diffstat (limited to 'Command/Import.hs')
-rw-r--r--Command/Import.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Command/Import.hs b/Command/Import.hs
index f486da7c5..313339371 100644
--- a/Command/Import.hs
+++ b/Command/Import.hs
@@ -140,9 +140,6 @@ verifyExisting key destfile (yes, no) = do
-- imported to, if it were imported.
need <- getFileNumCopies destfile
- (remotes, trusteduuids) <- knownCopies key
- untrusteduuids <- trustGet UnTrusted
- let tocheck = Remote.remotesWithoutUUID remotes (trusteduuids++untrusteduuids)
- let preverified = map (mkVerifiedCopy TrustedCopy) trusteduuids
+ (tocheck, preverified) <- verifiableCopies key []
verifyEnoughCopiesToDrop [] key need [] preverified tocheck
(const yes) no