summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-02 19:08:59 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-02 19:08:59 +0000
commit32bc52819fcf3129283144a6f75b961920404f4e (patch)
tree2ee2bb9ff6877b6878e5e4abe8316ffeda85089b /bin/portageq
parentf9e26804e902fe4566c601cfa4c627317081257c (diff)
downloadportage-32bc52819fcf3129283144a6f75b961920404f4e.tar.gz
portage-32bc52819fcf3129283144a6f75b961920404f4e.tar.bz2
portage-32bc52819fcf3129283144a6f75b961920404f4e.zip
In portageq, catch a KeyError and print a message to stderr. If the KeyError is raised, portageq prints a help message which leads to bug #135278.
svn path=/main/trunk/; revision=3449
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq
index 7e75ca2a3..ab1a9311f 100755
--- 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