aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-30 11:06:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-31 10:18:55 +0100
commit11c223b98e89ce48efd6c4de652eb1aad002faf4 (patch)
treeba79cab28770c2adb7a9f673160f6bbb38eeb50b
parent19d3f3b2c92ee8a62a503188ccc84974198eaca9 (diff)
downloadpaludis-11c223b98e89ce48efd6c4de652eb1aad002faf4.tar.gz
paludis-11c223b98e89ce48efd6c4de652eb1aad002faf4.tar.xz
UnableToMakeDecision might cause deps
There can be deps because of an UnableToMakeDecision if the decision was changed without a restart.
-rw-r--r--src/clients/cave/resolve_common.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 06a0c3967..96dd5f16a 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -798,9 +798,10 @@ namespace
throw InternalError(PALUDIS_HERE, "NothingNoChangeDecision shouldn't have deps");
}
- bool visit(const UnableToMakeDecision &) const PALUDIS_ATTRIBUTE((noreturn))
+ bool visit(const UnableToMakeDecision &) const
{
- throw InternalError(PALUDIS_HERE, "UnableToMakeDecision shouldn't have deps");
+ /* might've gone from a sensible decision to unable later on */
+ return false;
}
bool visit(const RemoveDecision &) const PALUDIS_ATTRIBUTE((noreturn))