From ceb2fef17a721ad7315ac84a304067ec22a22ad9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Sep 2010 19:45:01 -0700 Subject: [PATCH] Allow missing category with depclean --exclude. --- pym/_emerge/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 07b5d7b9e..4c9cd6dd3 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -623,7 +623,6 @@ def calc_depclean(settings, trees, ldpath_mtimes, deselect = myopts.get('--deselect') != 'n' required_sets = {} required_sets['world'] = psets['world'] - excluded_set = InternalPackageSet(initial_atoms=myopts.get('--exclude')) # When removing packages, a temporary version of the world 'selected' # set may be used which excludes packages that are intended to be @@ -743,7 +742,8 @@ def calc_depclean(settings, trees, ldpath_mtimes, protected_set.add("=" + pkg.cpv) continue - if excluded_set: + if resolver._frozen_config.excluded_pkgs: + excluded_set = resolver._frozen_config.excluded_pkgs required_sets['__excluded__'] = InternalPackageSet() for pkg in vardb: -- 2.26.2