Commit 63f14905 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by GitHub
Browse files

Merge pull request #4787 from 23Skidoo/old-cabals-custom-setup

SetupWrapper: Assume that old Cabals bootstrap.
parents 663d5c66 ff3f5154
......@@ -707,6 +707,9 @@ getExternalSetupMethod verbosity options pkg bt = do
installedCabalVersion :: SetupScriptOptions -> Compiler -> ProgramDb
-> IO (Version, Maybe InstalledPackageId
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')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment