projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77bda28
)
Make --prune and --depclean return before calculating dependencies if atoms are given...
author
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Jul 2007 09:42:34 +0000
(09:42 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Jul 2007 09:42:34 +0000
(09:42 -0000)
svn path=/main/trunk/; revision=7336
pym/emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/emerge/__init__.py
b/pym/emerge/__init__.py
index 64706cd998341ce266eb39d1f257dd92333d49e1..485c22c9a8fcc8de43faae7095cfcd91a4a719a3 100644
(file)
--- 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 ",