aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/prefer_or_avoid_helper.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-03-06 19:02:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-03-06 19:02:29 +0000
commit12e3419717f48a544b5fe79ab0a166ad0208e778 (patch)
treeaaf6e033d6f12cd793b310d24c8ac2350e67371d /paludis/resolver/prefer_or_avoid_helper.cc
parentdc5ee49682b15d687b185401ee606fc08f75c6c8 (diff)
downloadpaludis-12e3419717f48a544b5fe79ab0a166ad0208e778.tar.gz
paludis-12e3419717f48a544b5fe79ab0a166ad0208e778.tar.xz
Fix segfault
Diffstat (limited to 'paludis/resolver/prefer_or_avoid_helper.cc')
-rw-r--r--paludis/resolver/prefer_or_avoid_helper.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/resolver/prefer_or_avoid_helper.cc b/paludis/resolver/prefer_or_avoid_helper.cc
index 318dfff39..9b8405de1 100644
--- a/paludis/resolver/prefer_or_avoid_helper.cc
+++ b/paludis/resolver/prefer_or_avoid_helper.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2010, 2011, 2014 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
@@ -81,7 +81,7 @@ PreferOrAvoidHelper::add_avoid_matching(const std::shared_ptr<const PackageIDSeq
}
Tribool
-PreferOrAvoidHelper::operator() (const PackageDepSpec & s) const
+PreferOrAvoidHelper::operator() (const PackageDepSpec & s, const std::shared_ptr<const PackageID> & id) const
{
if (s.package_ptr())
{
@@ -97,7 +97,7 @@ PreferOrAvoidHelper::operator() (const PackageDepSpec & s) const
{
bool all(true);
for (auto q((*p)->begin()), q_end((*p)->end()) ; q != q_end ; ++q)
- if (! match_package(*_imp->env, s, *q, nullptr, { }))
+ if (! match_package(*_imp->env, s, *q, id, { }))
{
all = false;
break;
@@ -111,7 +111,7 @@ PreferOrAvoidHelper::operator() (const PackageDepSpec & s) const
p != p_end ; ++p)
{
for (auto q((*p)->begin()), q_end((*p)->end()) ; q != q_end ; ++q)
- if (match_package(*_imp->env, s, *q, nullptr, { }))
+ if (match_package(*_imp->env, s, *q, id, { }))
return false;
}