diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-21 09:42:34 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-21 09:42:34 +0000 |
commit | cd56cdb4dbc86c88ac92928e4582f2b3d9554f6c (patch) | |
tree | b7fd6d877006d156751b9713ac0afc690846635e | |
parent | 77bda28a6cbc699c44ff86ff1ee774102aeb78a1 (diff) | |
download | portage-cd56cdb4dbc86c88ac92928e4582f2b3d9554f6c.tar.gz portage-cd56cdb4dbc86c88ac92928e4582f2b3d9554f6c.tar.bz2 portage-cd56cdb4dbc86c88ac92928e4582f2b3d9554f6c.zip |
Make --prune and --depclean return before calculating dependencies if atoms are given but they don't match any packages.
svn path=/main/trunk/; revision=7336
-rw-r--r-- | pym/emerge/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 64706cd99..485c22c9a 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -5339,6 +5339,15 @@ def action_depclean(settings, trees, ldpath_mtimes, print return args_set.add(atom) + matched_packages = False + for x in args_set: + if vardb.match(x): + matched_packages = True + break + if not matched_packages: + portage.writemsg_stdout( + ">>> No packages selected for removal by %s\n" % action) + return if "--quiet" not in myopts: print "\nCalculating dependencies ", |