summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-07-28 07:39:42 -0700
committerZac Medico <zmedico@gentoo.org>2010-07-28 07:39:42 -0700
commit7e14134ce3888a0a1b11b9692ce37847a02e9d5e (patch)
tree1bc2c6560bb39746d93a440132fa4af4dcc5a555
parent3569643f9d0f5c7bf6723af3af0f5147a265fe68 (diff)
downloadportage-7e14134ce3888a0a1b11b9692ce37847a02e9d5e.tar.gz
portage-7e14134ce3888a0a1b11b9692ce37847a02e9d5e.tar.bz2
portage-7e14134ce3888a0a1b11b9692ce37847a02e9d5e.zip
Fix calc_depclean() to skip the topological sort code when there's
nothing selected for removal.
-rw-r--r--pym/_emerge/actions.py2
1 files changed, 1 insertions, 1 deletions
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