Fix calc_depclean() to skip the topological sort code when there's
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Jul 2010 14:39:42 +0000 (07:39 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Jul 2010 14:39:42 +0000 (07:39 -0700)
nothing selected for removal.

pym/_emerge/actions.py

index 07b3a663050bde338b44793271e60050aedabb7f..e014b16d4acc77edd29839c4cc9de710689dca43 100644 (file)
@@ -1058,7 +1058,7 @@ def calc_depclean(settings, trees, ldpath_mtimes,
                                return 0, [], False, required_pkgs_total
                        clean_set = set(cleanlist)
 
-       if True:
+       if clean_set:
                # Use a topological sort to create an unmerge order such that
                # each package is unmerged before it's dependencies. This is
                # necessary to avoid breaking things that may need to run