Skip to content

Commit c215dfb

Browse files
committed
Change earlier to other in skipped versions msg
1 parent e6129c8 commit c215dfb

File tree

2 files changed

+2
-2
lines changed
  • cabal-install-solver/src/Distribution/Solver/Modular
  • cabal-install/tests/UnitTests/Distribution/Solver/Modular

2 files changed

+2
-2
lines changed

cabal-install-solver/src/Distribution/Solver/Modular/Message.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ showOptions q xs = showQPN q ++ "; " ++ (L.intercalate ", "
291291
then showOption q x
292292
else showI i -- Don't show the package, just the version
293293
| x@(POption i linkedTo) <- take 3 xs
294-
] ++ if length xs >= 3 then " and earlier versions" else "")
294+
] ++ if length xs >= 3 then " and other versions" else "")
295295

296296
showGR :: QGoalReason -> String
297297
showGR UserGoal = " (user goal)"

cabal-install/tests/UnitTests/Distribution/Solver/Modular/Solver.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ tests =
974974
, Right $ exAv "B" 1 [ExFix "A" 6]
975975
]
976976
rejecting = "rejecting: A-5.0.0 (conflict: B => A==6.0.0)"
977-
skipping = "skipping: A; 4.0.0, 3.0.0, 2.0.0 and earlier versions (has"
977+
skipping = "skipping: A; 4.0.0, 3.0.0, 2.0.0 and other versions (has"
978978
in mkTest db "show summarized skipping versions list" ["B"] $
979979
solverFailure (\msg -> rejecting `isInfixOf` msg && skipping `isInfixOf` msg)
980980
]

0 commit comments

Comments
 (0)