diff options
author | 2011-01-06 13:21:13 +0000 | |
---|---|---|
committer | 2011-01-07 11:32:56 +0000 | |
commit | 81ef7b0468950cade215c889d47143db21720695 (patch) | |
tree | 9fe89084961f1bbf5c35619f82d802e457443b8a /paludis/resolver/get_constraints_for_purge_helper.cc | |
parent | 20cc98f89f0208619fa8845d784463f03a7c9234 (diff) | |
download | paludis-81ef7b0468950cade215c889d47143db21720695.tar.gz paludis-81ef7b0468950cade215c889d47143db21720695.tar.xz |
Pass ID to match_package
Diffstat (limited to 'paludis/resolver/get_constraints_for_purge_helper.cc')
-rw-r--r-- | paludis/resolver/get_constraints_for_purge_helper.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/resolver/get_constraints_for_purge_helper.cc b/paludis/resolver/get_constraints_for_purge_helper.cc index 631a1e423..7c51fdedc 100644 --- a/paludis/resolver/get_constraints_for_purge_helper.cc +++ b/paludis/resolver/get_constraints_for_purge_helper.cc @@ -1,7 +1,7 @@ /* vim: set sw=4 sts=4 et foldmethod=syntax : */ /* - * Copyright (c) 2010 Ciaran McCreesh + * Copyright (c) 2010, 2011 Ciaran McCreesh * * This file is part of the Paludis package manager. Paludis is free software; * you can redistribute it and/or modify it under the terms of the GNU General @@ -27,6 +27,7 @@ #include <paludis/util/simple_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> @@ -47,7 +48,8 @@ namespace paludis PackageDepSpecCollection purge_specs; Imp(const Environment * const e) : - env(e) + env(e), + purge_specs(make_null_shared_ptr()) { } }; @@ -85,6 +87,7 @@ GetConstraintsForPurgeHelper::operator() ( result->push_back(std::make_shared<Constraint>(make_named_values<Constraint>( n::destination_type() = dt_install_to_slash, n::force_unable() = false, + n::from_id() = id, n::nothing_is_fine_too() = true, n::reason() = reason, n::spec() = BlockDepSpec("!" + stringify(spec), spec, bk_weak), |