From: Zac Medico Date: Mon, 5 Jul 2010 09:40:32 +0000 (-0700) Subject: Handle InvalidAtom from vardbapi.match() in has_version. X-Git-Tag: v2.2_rc68~539 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a789bab3f757cbefe7d67db59a0e77f3ac25759a;p=portage.git Handle InvalidAtom from vardbapi.match() in has_version. --- 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