From a789bab3f757cbefe7d67db59a0e77f3ac25759a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 5 Jul 2010 02:40:32 -0700 Subject: [PATCH] Handle InvalidAtom from vardbapi.match() in has_version. --- bin/portageq | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/portageq b/bin/portageq index 5a4364fe8..34a538599 100755 --- a/bin/portageq +++ b/bin/portageq @@ -99,6 +99,10 @@ def has_version(argv): sys.exit(1) except KeyError: sys.exit(1) + except portage.exception.InvalidAtom: + portage.writemsg("ERROR: Invalid atom: '%s'\n" % argv[1], + noiselevel=-1) + return 2 has_version.uses_root = True -- 2.26.2