more OsPath conversion
Finally reached Annex code in this conversion. Sponsored-by: Graham Spencer
This commit is contained in:
parent
51a6cd1ee6
commit
f9d42c37c0
9 changed files with 64 additions and 37 deletions
|
@ -182,7 +182,7 @@ feedRead cmd params passphrase feeder reader = do
|
|||
withTmpFile (toOsPath "gpg") $ \tmpfile h -> do
|
||||
liftIO $ B.hPutStr h passphrase
|
||||
liftIO $ hClose h
|
||||
let passphrasefile = [Param "--passphrase-file", File (fromRawFilePath (fromOsPath tmpfile))]
|
||||
let passphrasefile = [Param "--passphrase-file", File (fromOsPath tmpfile)]
|
||||
go $ passphrasefile ++ params
|
||||
#endif
|
||||
where
|
||||
|
@ -441,7 +441,7 @@ testHarness tmpdir cmd a = ifM (inSearchPath (unGpgCmd cmd))
|
|||
go Nothing = return Nothing
|
||||
|
||||
makenewdir n = do
|
||||
let subdir = tmpdir </> show n
|
||||
let subdir = toOsPath tmpdir </> toOsPath (show n)
|
||||
catchIOErrorType AlreadyExists (const $ makenewdir $ n + 1) $ do
|
||||
createDirectory subdir
|
||||
return subdir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue