more windows and osx build fixes
This commit is contained in:
parent
4ba1057836
commit
f16604d2c8
3 changed files with 2 additions and 3 deletions
|
@ -165,7 +165,7 @@ upgradeToDistribution newdir cleanup distributionfile = do
|
||||||
{- OS X uses a dmg, so mount it, and copy the contents into place. -}
|
{- OS X uses a dmg, so mount it, and copy the contents into place. -}
|
||||||
unpack = liftIO $ do
|
unpack = liftIO $ do
|
||||||
olddir <- oldVersionLocation
|
olddir <- oldVersionLocation
|
||||||
withTmpDirIn (parentDir newdir) (toOsPath "git-annex.upgrade") $ \tmpdir -> do
|
withTmpDirIn (fromRawFilePath (parentDir (toRawFilePath newdir))) (toOsPath (toRawFilePath "git-annex.upgrade")) $ \tmpdir -> do
|
||||||
void $ boolSystem "hdiutil"
|
void $ boolSystem "hdiutil"
|
||||||
[ Param "attach", File distributionfile
|
[ Param "attach", File distributionfile
|
||||||
, Param "-mountpoint", File tmpdir
|
, Param "-mountpoint", File tmpdir
|
||||||
|
|
|
@ -182,7 +182,7 @@ feedRead cmd params passphrase feeder reader = do
|
||||||
withTmpFile (toOsPath "gpg") $ \tmpfile h -> do
|
withTmpFile (toOsPath "gpg") $ \tmpfile h -> do
|
||||||
liftIO $ B.hPutStr h passphrase
|
liftIO $ B.hPutStr h passphrase
|
||||||
liftIO $ hClose h
|
liftIO $ hClose h
|
||||||
let passphrasefile = [Param "--passphrase-file", File (fromosPath tmpfile)]
|
let passphrasefile = [Param "--passphrase-file", File (fromOsPath tmpfile)]
|
||||||
go $ passphrasefile ++ params
|
go $ passphrasefile ++ params
|
||||||
#endif
|
#endif
|
||||||
where
|
where
|
||||||
|
|
|
@ -27,7 +27,6 @@ import System.Posix.Types
|
||||||
import System.Posix.IO
|
import System.Posix.IO
|
||||||
#else
|
#else
|
||||||
import Utility.Tmp
|
import Utility.Tmp
|
||||||
import Utility.OsPath
|
|
||||||
#endif
|
#endif
|
||||||
import Utility.Tmp.Dir
|
import Utility.Tmp.Dir
|
||||||
import Author
|
import Author
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue