summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.