Skip to content

Commit

Permalink
Fix --download-only making install fail
Browse files Browse the repository at this point in the history
Fixes #7351

(cherry picked from commit 518e962)
  • Loading branch information
fgaz authored and mergify-bot committed May 4, 2021
1 parent 0960c8a commit 6ac2f73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cabal-install/src/Distribution/Client/CmdInstall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,11 @@ installAction flags@NixStyleFlags { extraFlags = clientInstallFlags', .. } targe
-- Now that we built everything we can do the installation part.
-- First, figure out if / what parts we want to install:
let
dryRun = buildSettingDryRun $ buildSettings baseCtx
dryRun = buildSettingDryRun (buildSettings baseCtx)
|| buildSettingOnlyDownload (buildSettings baseCtx)

-- Then, install!
when (not dryRun) $
unless dryRun $
if installLibs
then installLibraries verbosity
buildCtx compiler packageDbs progDb envFile nonGlobalEnvEntries
Expand Down

0 comments on commit 6ac2f73

Please sign in to comment.