parent
6e27b0d4d1
commit
d3de3c28eb
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ replaceFile createdirectory file action = replaceFile' createdirectory file (con
|
|||
|
||||
replaceFile' :: (RawFilePath -> Annex ()) -> RawFilePath -> (a -> Bool) -> (RawFilePath -> Annex a) -> Annex a
|
||||
replaceFile' createdirectory file checkres action = withOtherTmp $ \othertmpdir -> do
|
||||
let basetmp = relatedTemplate' file
|
||||
let basetmp = relatedTemplate' (P.takeFileName file)
|
||||
withTmpDirIn (fromRawFilePath othertmpdir) (toOsPath basetmp) $ \tmpdir -> do
|
||||
let tmpfile = toRawFilePath tmpdir P.</> basetmp
|
||||
r <- action tmpfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue