Commit 40b0b1f0 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Failed packages can still depend on configured packages

This is because a package can depend on several packages and if one
of the deps fail then it fails but it still depend on the others
that did not fail. This fixes an assertion failure in larger builds.
parent 7da2bae5
......@@ -389,6 +389,10 @@ stateDependencyRelation (Installed _) (PreExisting _) = True
stateDependencyRelation (Installed _) (Installed _) = True
stateDependencyRelation (Failed _ _) (PreExisting _) = True
-- failed can depends on configured because a package can depend on
-- several other packages and if one of the deps fail then we fail
-- but we still depend on the other ones that did not fail:
stateDependencyRelation (Failed _ _) (Configured _) = True
stateDependencyRelation (Failed _ _) (Installed _) = True
stateDependencyRelation (Failed _ _) (Failed _ _) = True
......
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