aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/get_constraints_for_purge_helper.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-05-19 14:20:48 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-05-19 20:52:24 +0100
commite52571861104efe6139b78b22557211f08025f11 (patch)
tree634bec98491886d12f8f5a25b24f4cacf8d69de5 /paludis/resolver/get_constraints_for_purge_helper.cc
parent80bf4ad14bfd8ab74a9c0d5f203ad5a370351def (diff)
downloadpaludis-e52571861104efe6139b78b22557211f08025f11.tar.gz
paludis-e52571861104efe6139b78b22557211f08025f11.tar.xz
Revert the package dep spec changes
Diffstat (limited to 'paludis/resolver/get_constraints_for_purge_helper.cc')
-rw-r--r--paludis/resolver/get_constraints_for_purge_helper.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/paludis/resolver/get_constraints_for_purge_helper.cc b/paludis/resolver/get_constraints_for_purge_helper.cc
index af0bb9374..0cdedc1f0 100644
--- a/paludis/resolver/get_constraints_for_purge_helper.cc
+++ b/paludis/resolver/get_constraints_for_purge_helper.cc
@@ -24,19 +24,18 @@
#include <paludis/resolver/resolution.hh>
#include <paludis/resolver/decision.hh>
#include <paludis/resolver/make_uninstall_blocker.hh>
-
#include <paludis/util/pimp-impl.hh>
#include <paludis/util/visitor_cast.hh>
#include <paludis/util/make_shared_copy.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/util/make_null_shared_ptr.hh>
#include <paludis/util/stringify.hh>
-
#include <paludis/dep_spec.hh>
#include <paludis/package_id.hh>
#include <paludis/package_dep_spec_collection.hh>
+#include <paludis/partially_made_package_dep_spec.hh>
+#include <paludis/elike_slot_requirement.hh>
#include <paludis/metadata_key.hh>
-#include <paludis/dep_spec_data.hh>
using namespace paludis;
using namespace paludis::resolver;
@@ -78,10 +77,10 @@ GetConstraintsForPurgeHelper::operator() (
{
const std::shared_ptr<ConstraintSequence> result(std::make_shared<ConstraintSequence>());
- MutablePackageDepSpecData partial_spec({ });
- partial_spec.require_package(id->name());
+ PartiallyMadePackageDepSpec partial_spec({ });
+ partial_spec.package(id->name());
if (id->slot_key())
- partial_spec.require_exact_slot(id->slot_key()->parse_value(), false);
+ partial_spec.slot_requirement(std::make_shared<ELikeSlotExactRequirement>(id->slot_key()->parse_value(), false));
PackageDepSpec spec(partial_spec);
const std::shared_ptr<WasUsedByReason> reason(std::make_shared<WasUsedByReason>(was_used_by_ids));