Unverified Commit ae1ad6a4 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by Mikhail Glushenkov
Browse files

'cabal outdated': Better message.

parent 896620f1
......@@ -64,10 +64,13 @@ outdated verbosity outdatedFlags repoContext comp platform = do
then depsFromNewFreezeFile verbosity
else depsFromPkgDesc verbosity comp platform
let outdatedDeps = listOutdated deps pkgIndex ignore minor
notice verbosity ("Outdated dependencies: "
++ intercalate ", "
(map (\(d, v) -> display d
++ " (latest: " ++ display v ++ ")") outdatedDeps))
if (not . null $ outdatedDeps)
then notice verbosity
("Outdated dependencies: "
++ intercalate ", "
(map (\(d, v) -> display d
++ " (latest: " ++ display v ++ ")") outdatedDeps))
else notice verbosity "All dependencies are up to date."
if (exitCode && (not . null $ outdatedDeps))
then exitFailure
else return ()
......
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