summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-27 20:15:57 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-27 20:15:57 +0000
commit58788855b7eeca65bcb3cbc9ae83c7ba9b727733 (patch)
tree86a9c2d876d4148edb040e6a95ad412220fd099d
parent0f19cbfa88913e79c0b82ef79fa9976ceaa21ce5 (diff)
downloadportage-58788855b7eeca65bcb3cbc9ae83c7ba9b727733.tar.gz
portage-58788855b7eeca65bcb3cbc9ae83c7ba9b727733.tar.bz2
portage-58788855b7eeca65bcb3cbc9ae83c7ba9b727733.zip
Never uninstall sys-apps/portage except through replacement.
svn path=/main/trunk/; revision=10003
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index e853d8fb8..534c13a13 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3553,6 +3553,10 @@ class depgraph(object):
continue
if "/" == task.root:
+ # Never uninstall sys-apps/portage
+ # except through replacement.
+ if "sys-apps/portage" == task.cp:
+ continue
# For packages in the system set, don't take
# any chances. If the conflict can't be resolved
# by a normal replacement operation then abort.