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:38:42 +0000 (06:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 06:38:42 +0000 (06:38 -0000)
svn path=/main/branches/2.1.2/; revision=7346

bin/emerge

index 518872475db6f1603b4c708a5866396ae8e5d2ea..f3952ea596bd1d898e61e73aaf90ea28a2d31238 100755 (executable)
@@ -5326,6 +5326,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())