aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-26 14:09:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-26 02:58:31 +0000
commit365a2630932b711d29706210dfd6e79057126829 (patch)
treea788503c15d149661a64b43ba10345a1b548baee
parent871c060aae9bead22b0f02a7d515a4e42ff9e3b4 (diff)
downloadpaludis-365a2630932b711d29706210dfd6e79057126829.tar.gz
paludis-365a2630932b711d29706210dfd6e79057126829.tar.xz
Check for installed, not uninstallable.
Fixes: ticket:721
-rw-r--r--paludis/install_task.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/paludis/install_task.cc b/paludis/install_task.cc
index 3e42dc256..6192c73e8 100644
--- a/paludis/install_task.cc
+++ b/paludis/install_task.cc
@@ -1396,8 +1396,7 @@ namespace
{
if (! failure)
if ((*env)[selection::SomeArbitraryVersion(generator::Matches(*node.spec(), MatchPackageOptions())
- | filter::SupportsAction<InstalledAction>()
- | filter::SupportsAction<UninstallAction>())]->empty())
+ | filter::SupportsAction<InstalledAction>())]->empty())
failure = node.spec();
}
@@ -1593,8 +1592,7 @@ namespace
* there are no matches here it's not a problem because of or-deps. */
std::tr1::shared_ptr<const PackageIDSequence> installed((*env)[selection::AllVersionsUnsorted(
generator::Matches(*node.spec(), MatchPackageOptions()) |
- filter::SupportsAction<InstalledAction>() |
- filter::SupportsAction<UninstallAction>())]);
+ filter::SupportsAction<InstalledAction>())]);
for (PackageIDSequence::ConstIterator i(installed->begin()), i_end(installed->end()) ;
i != i_end ; ++i)