push location log updating up to callers of download
Prep for move --to --from, which needs to download from a src repo
without updating the location log for the local repo, before sending the
content on to the dest repo.
Note that caller of download' already update the log themselves.
See previous commit a422a056f2
that pushed it up to download from getViaTmpFrom.
(Also removed in passing a debug print + readline that I accidentially
committed last week on this branch.)
Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
8c349b8802
commit
1abd457e98
3 changed files with 8 additions and 7 deletions
|
@ -19,6 +19,7 @@ import Annex.Transfer
|
|||
import Logs.Presence
|
||||
import Logs.Trust
|
||||
import Logs.File
|
||||
import Logs.Location
|
||||
import Annex.NumCopies
|
||||
|
||||
import qualified Data.ByteString.Char8 as B8
|
||||
|
@ -258,7 +259,8 @@ fromPerform' present src removewhen key afile = do
|
|||
else dispatch removewhen deststartedwithcopy =<< get
|
||||
where
|
||||
get = notifyTransfer Download afile $
|
||||
download src key afile stdRetry
|
||||
logStatusAfter key .
|
||||
download src key afile stdRetry
|
||||
|
||||
dispatch _ deststartedwithcopy False = do
|
||||
logMoveCleanup deststartedwithcopy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue