aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-28 18:03:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-28 18:03:20 +0100
commit0d7c7cc2f8dc683c0b845a7da7380799aed0e965 (patch)
tree8ee735396f23610a39bb25af8a79251e7ba2ea84
parent36d7d6aefbe96e95d9e401e3ab048f485f1c05a6 (diff)
downloadpaludis-0d7c7cc2f8dc683c0b845a7da7380799aed0e965.tar.gz
paludis-0d7c7cc2f8dc683c0b845a7da7380799aed0e965.tar.xz
Realise we can't purge sooner
-rw-r--r--paludis/resolver/decider.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index 630d7eb..c213719 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -1979,6 +1979,9 @@ Decider::_resolve_purges()
std::set_difference(used_originally_and_not_going_away->begin(), used_originally_and_not_going_away->end(),
used_afterwards->begin(), used_afterwards->end(), newly_unused->inserter(), PackageIDSetComparator());
+ if (newly_unused->empty())
+ return false;
+
const std::tr1::shared_ptr<PackageIDSequence> newly_unused_seq(new PackageIDSequence);
std::copy(newly_unused->begin(), newly_unused->end(), newly_unused_seq->back_inserter());