add INPUT-REQUIRED
Used by git-annex-compute-singularity to make addcomputed --fast work. Also, simplified git-annex-compute-singularity; there is no need to hard link the container into place. singularity does not care about the extension of the container, so can just pass it the annex object file.
This commit is contained in:
parent
bb0bc078fc
commit
0477a8d098
6 changed files with 83 additions and 66 deletions
|
@ -152,14 +152,14 @@ perform o r file origkey origstate = do
|
|||
check "not outputting"
|
||||
Remote.Compute.computeOutputs origstate state
|
||||
|
||||
getinputcontent program p
|
||||
getinputcontent program p required
|
||||
| originalOption o =
|
||||
case M.lookup p (Remote.Compute.computeInputs origstate) of
|
||||
Just inputkey -> getInputContent' False inputkey
|
||||
Just inputkey -> getInputContent' False inputkey required
|
||||
(fromOsPath p ++ "(key " ++ serializeKey inputkey ++ ")")
|
||||
Nothing -> Remote.Compute.computationBehaviorChangeError program
|
||||
"requesting a new input file" p
|
||||
| otherwise = getInputContent False p
|
||||
| otherwise = getInputContent False p required
|
||||
|
||||
destfile outputfile
|
||||
| Just outputfile == origfile = Just file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue