Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
c5641fca
Commit
c5641fca
authored
Jul 30, 2008
by
Duncan Coutts
Browse files
Use the setupWrapper useWorkingDir feature in Install
Rather than calling inDir directly.
parent
53606772
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
c5641fca
...
...
@@ -329,10 +329,11 @@ installUnpackedPackage verbosity scriptOptions miscOptions configFlags pkg mpath
return
BuildOk
where
buildCommand
=
Cabal
.
buildCommand
defaultProgramConfiguration
setup
cmd
flags
=
inDir
mpath
$
setupWrapper
verbosity
scriptOptions
(
Just
$
PackageDescription
.
packageDescription
pkg
)
cmd
flags
[]
setup
cmd
flags
=
setupWrapper
verbosity
scriptOptions
{
useWorkingDir
=
mpath
}
(
Just
$
PackageDescription
.
packageDescription
pkg
)
cmd
flags
[]
reexec
cmd
=
do
-- look for our on executable file and re-exec ourselves using
-- a helper program like sudo to elevate priviledges:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment