Skip to content

Commit

Permalink
Merge pull request #6501 from phadej/issue-6479-tmp-in-exec
Browse files Browse the repository at this point in the history
Resolve #6479: Create distTempDirectory in withTempEnvFile
  • Loading branch information
phadej authored Jan 22, 2020
2 parents f437d94 + 67eca1b commit d02655b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cabal-install/Distribution/Client/CmdExec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import Distribution.Simple.Setup
import Distribution.Simple.Utils
( die'
, info
, createDirectoryIfMissingVerbose
, withTempDirectory
, wrapText
)
Expand Down Expand Up @@ -223,11 +224,8 @@ withTempEnvFile :: Verbosity
-> PostBuildProjectStatus
-> ([(String, Maybe String)] -> IO a)
-> IO a
withTempEnvFile verbosity
baseCtx
buildCtx
buildStatus
action =
withTempEnvFile verbosity baseCtx buildCtx buildStatus action = do
createDirectoryIfMissingVerbose verbosity True (distTempDirectory (distDirLayout baseCtx))
withTempDirectory
verbosity
(distTempDirectory (distDirLayout baseCtx))
Expand Down

0 comments on commit d02655b

Please sign in to comment.