Skip to content

Commit

Permalink
Fixing the flag boolean and the fixtures dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkato authored and emilypi committed Jun 3, 2021
1 parent 0723e38 commit aabe562
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/CmdConfigure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ configureAction' flags@NixStyleFlags {..} _extraArgs globalFlags = do
appends = fromFlagOrDefault False $ configAppend configExFlags
backupFile = localFile <> "~"

when (exists && not backups) $ do
when (exists && backups) $ do
notice v $
quote (takeFileName localFile) <> " already exists, backing it up to "
<> quote (takeFileName backupFile) <> "."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ configureTests = testGroup "Configure tests"
]

projectFile :: FilePath
projectFile = "tests" </> "fixtures" </> "reconfigure" </> "cabal.project"
projectFile = "tests" </> "fixtures" </> "configure" </> "cabal.project"

0 comments on commit aabe562

Please sign in to comment.