In portageq, catch a KeyError and print a message to stderr. If the KeyError is...
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Jun 2006 19:08:59 +0000 (19:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Jun 2006 19:08:59 +0000 (19:08 -0000)
svn path=/main/trunk/; revision=3449

bin/portageq

index 7e75ca2a3c976f0e41448721bad00f4befa2b87c..ab1a9311f72a7bc33e08ea0a9b1290f8a95cb441 100755 (executable)
@@ -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