import --clean-duplicates: Fix bug that didn't count local or trusted repo's copy of a file as one of the necessary copies to allow removing it from the import location.

This commit is contained in:
Joey Hess 2015-06-03 13:15:38 -04:00
parent b8f044660f
commit de3bd11a2c
4 changed files with 8 additions and 2 deletions

View file

@ -144,4 +144,4 @@ verifiedExisting key destfile = do
(remotes, trusteduuids) <- knownCopies key
untrusteduuids <- trustGet UnTrusted
let tocheck = Remote.remotesWithoutUUID remotes (trusteduuids++untrusteduuids)
verifyEnoughCopies [] key need trusteduuids [] tocheck
verifyEnoughCopies [] key need [] trusteduuids tocheck