Skip to content

Commit aabe562

Browse files
ptkatoemilypi
authored andcommitted
Fixing the flag boolean and the fixtures dir name
1 parent 0723e38 commit aabe562

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

cabal-install/src/Distribution/Client/CmdConfigure.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ configureAction' flags@NixStyleFlags {..} _extraArgs globalFlags = do
106106
appends = fromFlagOrDefault False $ configAppend configExFlags
107107
backupFile = localFile <> "~"
108108

109-
when (exists && not backups) $ do
109+
when (exists && backups) $ do
110110
notice v $
111111
quote (takeFileName localFile) <> " already exists, backing it up to "
112112
<> quote (takeFileName backupFile) <> "."

cabal-install/tests/UnitTests/Distribution/Client/Configure.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ configureTests = testGroup "Configure tests"
9797
]
9898

9999
projectFile :: FilePath
100-
projectFile = "tests" </> "fixtures" </> "reconfigure" </> "cabal.project"
100+
projectFile = "tests" </> "fixtures" </> "configure" </> "cabal.project"

0 commit comments

Comments
 (0)