Never uninstall sys-apps/portage except through replacement.
authorZac Medico <zmedico@gentoo.org>
Sun, 27 Apr 2008 20:15:57 +0000 (20:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Apr 2008 20:15:57 +0000 (20:15 -0000)
svn path=/main/trunk/; revision=10003

pym/_emerge/__init__.py

index e853d8fb8afcf66d1236c3d9693eb794662f0f20..534c13a1396b2dd846e8a9c50598debac17fec5b 100644 (file)
@@ -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.