From: Zac Medico Date: Fri, 1 Oct 2010 02:45:01 +0000 (-0700) Subject: Allow missing category with depclean --exclude. X-Git-Tag: v2.2_rc89~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d511f5d4f1e8285dbb9e57969cda7a68e37d77c6;p=portage.git Allow missing category with depclean --exclude. --- 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: