From 32bc52819fcf3129283144a6f75b961920404f4e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Jun 2006 19:08:59 +0000 Subject: 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 --- bin/portageq | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-1-g7c22