Skip to content

Commit

Permalink
Merge pull request #4787 from 23Skidoo/old-cabals-custom-setup
Browse files Browse the repository at this point in the history
SetupWrapper: Assume that old Cabals bootstrap.
  • Loading branch information
23Skidoo authored Oct 15, 2017
2 parents 663d5c6 + ff3f515 commit 63f1490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabal-install/Distribution/Client/SetupWrapper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ getExternalSetupMethod verbosity options pkg bt = do
installedCabalVersion :: SetupScriptOptions -> Compiler -> ProgramDb
-> IO (Version, Maybe InstalledPackageId
,SetupScriptOptions)
installedCabalVersion options' _ _ | packageName pkg == mkPackageName "Cabal"
&& bt == Custom =
return (packageVersion pkg, Nothing, options')
installedCabalVersion options' compiler progdb = do
index <- maybeGetInstalledPackages options' compiler progdb
let cabalDep = Dependency (mkPackageName "Cabal") (useCabalVersion options')
Expand Down

0 comments on commit 63f1490

Please sign in to comment.