Make --prune pull in the system set since that could pull in some slots that wouldn...
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 06:06:41 +0000 (06:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 06:06:41 +0000 (06:06 -0000)
svn path=/main/trunk/; revision=7343

pym/emerge/__init__.py

index 485c22c9a8fcc8de43faae7095cfcd91a4a719a3..3799627eff0d3e24391ad847bc734b3990ae16e1 100644 (file)
@@ -5363,6 +5363,9 @@ def action_depclean(settings, trees, ldpath_mtimes,
                        if vardb.match(atom):
                                remaining_atoms.append((atom, 'system', hard))
        elif action == "prune":
+               for atom in syslist:
+                       if vardb.match(atom):
+                               remaining_atoms.append((atom, 'system', hard))
                # Pull in everything that's installed since we don't want to prune a
                # package if something depends on it.
                remaining_atoms.extend((atom, 'world', hard) for atom in vardb.cp_all())