Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
a00200e3
Commit
a00200e3
authored
May 05, 2008
by
Duncan Coutts
Browse files
Packages are only invalid if they have more than zero problems.
parent
68e5cfc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Hackage/InstallPlan.hs
View file @
a00200e3
...
...
@@ -291,8 +291,10 @@ showPlanProblem (PackageInconsistency name inconsistencies) =
problems
::
OS
->
Arch
->
CompilerId
->
PackageIndex
(
PlanPackage
a
)
->
[
PlanProblem
a
]
problems
os
arch
comp
index
=
[
PackageInvalid
pkg
(
configuredPackageProblems
os
arch
comp
pkg
)
|
Configured
pkg
<-
PackageIndex
.
allPackages
index
]
[
PackageInvalid
pkg
packageProblems
|
Configured
pkg
<-
PackageIndex
.
allPackages
index
,
let
packageProblems
=
configuredPackageProblems
os
arch
comp
pkg
,
not
(
null
packageProblems
)
]
++
[
PackageMissingDeps
pkg
missingDeps
|
(
pkg
,
missingDeps
)
<-
PackageIndex
.
brokenPackages
index
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment