aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/fix_locked_dependencies.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-05-10 10:41:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-05-10 10:41:11 +0000
commit52bfe9da687d079d44eca092c180f0159f1a95b8 (patch)
tree66316c086ff8653f797a5bb1035a0ca551c77257 /paludis/repositories/e/fix_locked_dependencies.cc
parentc7eb0a7aabe10331f267f08e729a135180363c7b (diff)
downloadpaludis-52bfe9da687d079d44eca092c180f0159f1a95b8.tar.gz
paludis-52bfe9da687d079d44eca092c180f0159f1a95b8.tar.xz
new parser code
Diffstat (limited to 'paludis/repositories/e/fix_locked_dependencies.cc')
-rw-r--r--paludis/repositories/e/fix_locked_dependencies.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/paludis/repositories/e/fix_locked_dependencies.cc b/paludis/repositories/e/fix_locked_dependencies.cc
index 81f4994ab..f1bcadbc4 100644
--- a/paludis/repositories/e/fix_locked_dependencies.cc
+++ b/paludis/repositories/e/fix_locked_dependencies.cc
@@ -18,18 +18,20 @@
*/
#include <paludis/repositories/e/fix_locked_dependencies.hh>
-#include <paludis/repositories/e/package_dep_spec.hh>
+#include <paludis/repositories/e/eapi.hh>
#include <paludis/util/visitor-impl.hh>
#include <paludis/util/visitor_cast.hh>
#include <paludis/util/exception.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/make_shared_ptr.hh>
#include <paludis/util/fs_entry.hh>
+#include <paludis/util/options.hh>
#include <paludis/dep_spec.hh>
#include <paludis/query.hh>
#include <paludis/environment.hh>
#include <paludis/package_database.hh>
#include <paludis/package_id.hh>
+#include <paludis/elike_slot_requirement.hh>
#include <tr1/functional>
#include <algorithm>
#include <list>
@@ -141,8 +143,9 @@ namespace
if (matches->empty())
break;
- PackageDepSpec new_s(partial_parse_e_package_dep_spec(stringify(s), eapi, id).slot_requirement(
- make_shared_ptr(new ESlotExactRequirement((*matches->last())->slot(), true))));
+ PackageDepSpec new_s(partial_parse_elike_package_dep_spec(stringify(s),
+ (*eapi[k::supported()])[k::package_dep_spec_parse_options()], id).slot_requirement(
+ make_shared_ptr(new ELikeSlotExactRequirement((*matches->last())->slot(), true))));
c.reset(new TreeLeaf<DependencySpecTree, PackageDepSpec>(std::tr1::static_pointer_cast<PackageDepSpec>(
PackageDepSpec(new_s).clone())));