aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 23:57:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 23:57:26 +0000
commitbf39958eefa6d95473062548da5d443dda937e6a (patch)
tree2cd0fb1729e87d3593f99632db8d77567e4d6bb2
parent32513a64c2574fad392074e1879b02cf2b52c3ff (diff)
downloadpaludis-bf39958eefa6d95473062548da5d443dda937e6a.tar.gz
paludis-bf39958eefa6d95473062548da5d443dda937e6a.tar.xz
Honour ignore_installed
-rw-r--r--paludis/dep_list.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/paludis/dep_list.cc b/paludis/dep_list.cc
index 3e16a2a..3327621 100644
--- a/paludis/dep_list.cc
+++ b/paludis/dep_list.cc
@@ -359,9 +359,10 @@ DepList::visit(const PackageDepAtom * const p)
{
/* if we're already installed, only include us if we're a better version */
/// \todo SLOTs?
- if (! installed->empty())
- if (e->get<pde_version>() <= installed->last()->get<pde_version>())
- continue;
+ if (! _imp->ignore_installed)
+ if (! installed->empty())
+ if (e->get<pde_version>() <= installed->last()->get<pde_version>())
+ continue;
/* check masks */
if (_imp->environment->mask_reasons(*e).any())