aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-13 15:54:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-13 15:54:11 +0100
commitb8f87bef65e74f9ac356e24937970491f94f4d16 (patch)
tree4d859a562a3b1eb4279d7bc0ccb27d6a4c65eea2
parentba28d4b8193d710fc8c6d1d6b0246a741f4ca206 (diff)
downloadpaludis-b8f87bef65e74f9ac356e24937970491f94f4d16.tar.gz
paludis-b8f87bef65e74f9ac356e24937970491f94f4d16.tar.xz
Don't barf if things no longer exist
Fixes: ticket:916
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index 816cae6..d596163 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -814,7 +814,7 @@ namespace
const std::tr1::shared_ptr<Environment> & env,
const PackageDepSpec & spec)
{
- const std::tr1::shared_ptr<const PackageIDSequence> ids((*env)[selection::RequireExactlyOne(
+ const std::tr1::shared_ptr<const PackageIDSequence> ids((*env)[selection::BestVersionOnly(
generator::Matches(spec, MatchPackageOptions()))]);
if (ids->empty())
return stringify(spec);