Fix depclean breakage so that it doesn't clean some packages that
authorZac Medico <zmedico@gentoo.org>
Sat, 16 Feb 2008 07:59:44 +0000 (07:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 16 Feb 2008 07:59:44 +0000 (07:59 -0000)
shouldn't be cleaned.

svn path=/main/trunk/; revision=9341

pym/_emerge/__init__.py

index 19dfc23e6e7bec0f5989dbb07ed2f2f514153be0..1c8547b7d1b25d609a0a462b08fa2f68c4b94821 100644 (file)
@@ -6645,7 +6645,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
                                del nodes[1:]
                        for node in nodes:
                                graph.remove(node)
-                               cleanlist.append(node)
+                               if node in clean_set:
+                                       cleanlist.append(node)
 
                unmerge(root_config, myopts,
                        "unmerge", cleanlist, ldpath_mtimes)