generalized Annex.Wanted
this should make it easy to use from inside the assistant, where everything is an AssociatedFile.
This commit is contained in:
parent
acb8721072
commit
fee40dd374
5 changed files with 28 additions and 33 deletions
|
@ -32,7 +32,7 @@ seek = [withField fromOption Remote.byName $ \from ->
|
|||
|
||||
start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
|
||||
start from file (key, _) = autoCopiesWith file key (>) $ \numcopies ->
|
||||
stopUnless (checkAuto $ shouldDrop from file) $
|
||||
stopUnless (checkAuto $ wantDrop (Remote.uuid <$> from) (Just file)) $
|
||||
case from of
|
||||
Nothing -> startLocal file numcopies key
|
||||
Just remote -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue