projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e2680
)
In portageq, catch a KeyError and print a message to stderr. If the KeyError is...
author
Zac Medico
<zmedico@gentoo.org>
Fri, 2 Jun 2006 19:08:59 +0000
(19:08 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 2 Jun 2006 19:08:59 +0000
(19:08 -0000)
svn path=/main/trunk/; revision=3449
bin/portageq
patch
|
blob
|
history
diff --git
a/bin/portageq
b/bin/portageq
index 7e75ca2a3c976f0e41448721bad00f4befa2b87c..ab1a9311f72a7bc33e08ea0a9b1290f8a95cb441 100755
(executable)
--- a/
bin/portageq
+++ b/
bin/portageq
@@
-145,6
+145,9
@@
def match(argv):
portage.writemsg("* %s\n" % pkg, noiselevel=-1)
portage.writemsg("\nPlease use a more specific atom.\n", noiselevel=-1)
sys.exit(1)
+ except KeyError, e:
+ portage.writemsg("%s\n" % str(e), noiselevel=-1)
+ sys.exit(1)
match.uses_root = True