From 7e14134ce3888a0a1b11b9692ce37847a02e9d5e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 28 Jul 2010 07:39:42 -0700 Subject: Fix calc_depclean() to skip the topological sort code when there's nothing selected for removal. --- pym/_emerge/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 07b3a6630..e014b16d4 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -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 -- cgit v1.2.3-1-g7c22