1 |
commit: d8c868bbf2f2ffc1b2890e7c4d57f03621ac9007 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 22:53:21 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 22:53:21 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d8c868bb |
7 |
|
8 |
depclean: warn for each unmatched argument |
9 |
|
10 |
This output is similar to that produced by unmerge(). |
11 |
|
12 |
--- |
13 |
pym/_emerge/actions.py | 5 ++++- |
14 |
1 files changed, 4 insertions(+), 1 deletions(-) |
15 |
|
16 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
17 |
index 9bc2c2b..f6b6928 100644 |
18 |
--- a/pym/_emerge/actions.py |
19 |
+++ b/pym/_emerge/actions.py |
20 |
@@ -563,7 +563,10 @@ def action_depclean(settings, trees, ldpath_mtimes, |
21 |
for x in args_set: |
22 |
if vardb.match(x): |
23 |
matched_packages = True |
24 |
- break |
25 |
+ else: |
26 |
+ writemsg_level("--- Couldn't find '%s' to %s.\n" % \ |
27 |
+ (x.replace("null/", ""), action), |
28 |
+ level=logging.WARN, noiselevel=-1) |
29 |
if not matched_packages: |
30 |
writemsg_level(">>> No packages selected for removal by %s\n" % \ |
31 |
action) |