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_rc90~68 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59ede51f47708d737d165b64fb104a48c44a5aeb;p=portage.git Allow missing category with depclean --exclude. --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index e292c55ca..68e692bc3 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: