aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-11 15:31:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-11 15:31:29 +0000
commit7ad737a6e06ff2b0227f0f19bd43dceb21a6bcff (patch)
treedb17b299f4861d3303d439b96b6d7082c4778d4f
parent52dc38c10a88e5c4217781cfe0600300e2afd063 (diff)
downloadpaludis-7ad737a6e06ff2b0227f0f19bd43dceb21a6bcff.tar.gz
paludis-7ad737a6e06ff2b0227f0f19bd43dceb21a6bcff.tar.xz
If we pass a target to install and it's already installed, reinstall it.
-rw-r--r--paludis/dep_list.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/dep_list.cc b/paludis/dep_list.cc
index 71827fb..d6da7bb 100644
--- a/paludis/dep_list.cc
+++ b/paludis/dep_list.cc
@@ -363,9 +363,10 @@ DepList::visit(const PackageDepAtom * const p)
for (PackageDatabaseEntryCollection::ReverseIterator e(matches->rbegin()),
e_end(matches->rend()) ; e != e_end ; ++e)
{
- /* if we're already installed, only include us if we're a better version */
+ /* if we're already installed, only include us if we're a better version or
+ * if we're a top level target */
/// \todo SLOTs?
- if (! _imp->ignore_installed)
+ if ((! _imp->ignore_installed) && (0 != _imp->current_package))
if (! installed->empty())
if (e->get<pde_version>() <= installed->last()->get<pde_version>())
continue;