diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-30 19:45:01 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-30 19:49:23 -0700 |
commit | ceb2fef17a721ad7315ac84a304067ec22a22ad9 (patch) | |
tree | d7febf560fd1dc3f3d4c49e85e43476900c5203f | |
parent | a84c222ec16151c99129b703d810ddbb05d4c2b2 (diff) | |
download | portage-ceb2fef17a721ad7315ac84a304067ec22a22ad9.tar.gz portage-ceb2fef17a721ad7315ac84a304067ec22a22ad9.tar.bz2 portage-ceb2fef17a721ad7315ac84a304067ec22a22ad9.zip |
Allow missing category with depclean --exclude.
-rw-r--r-- | pym/_emerge/actions.py | 4 |
1 files 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: |