Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
6a79280a
Commit
6a79280a
authored
Oct 31, 2013
by
Mikhail Glushenkov
Browse files
Rename the 'maybeRegister' helper to 'maybeGenPkgConf'.
parent
6892a378
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
6a79280a
...
...
@@ -1241,7 +1241,7 @@ installUnpackedPackage verbosity buildLimit installLock numJobs
-- Install phase
onFailure
InstallFailed
$
criticalSection
installLock
$
do
-- Capture installed package configuration file
maybePkgConf
<-
maybe
Register
maybePkgConf
<-
maybe
GenPkgConf
-- Actual installation
withWin32SelfUpgrade
verbosity
configFlags
compid
platform
pkg
$
do
...
...
@@ -1297,8 +1297,8 @@ installUnpackedPackage verbosity buildLimit installLock numJobs
userInstall
=
fromFlagOrDefault
defaultUserInstall
(
configUserInstall
configFlags'
)
maybe
Register
::
IO
(
Maybe
Installed
.
InstalledPackageInfo
)
maybe
Register
=
maybe
GenPkgConf
::
IO
(
Maybe
Installed
.
InstalledPackageInfo
)
maybe
GenPkgConf
=
if
shouldRegister
then
do
tmp
<-
getTemporaryDirectory
withTempFile
tmp
(
tempTemplate
"pkgConf"
)
$
\
pkgConfFile
handle
->
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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