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
3427641f
Commit
3427641f
authored
Nov 07, 2013
by
Mikhail Glushenkov
Browse files
Comments.
parent
1b45cea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/SetupWrapper.hs
View file @
3427641f
...
...
@@ -248,14 +248,18 @@ externalSetupMethod verbosity options pkg bt mkargs = do
case
savedVer
of
Just
version
|
version
`
withinRange
`
useCabalVersion
options
->
do
updateSetupScript
version
bt
-- Does the previously compiled setup executable still exist and
-- is it up-to date?
useExisting
<-
canUseExistingSetup
version
if
useExisting
then
return
(
version
,
Nothing
,
options
)
else
installedVersion
_
->
installedVersion
where
-- TODO: fold this check into 'getCachedSetupExecutable'
-- so that it's not done twice.
-- This check duplicates the checks in 'getCachedSetupExecutable' /
-- 'compileSetupExecutable'. Unfortunately, we have to perform it twice
-- because the selected Cabal version may change as a result of this
-- check.
canUseExistingSetup
::
Version
->
IO
Bool
canUseExistingSetup
version
=
if
useCachedSetupExecutable
...
...
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