diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-07-05 02:40:32 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-07-05 02:40:32 -0700 |
commit | a789bab3f757cbefe7d67db59a0e77f3ac25759a (patch) | |
tree | 70b1b8f194d0bf83c02dfdb3885373dbc52d9808 | |
parent | 3669b8463907ed927ff27f7bfc10c6fe4aebf770 (diff) | |
download | portage-a789bab3f757cbefe7d67db59a0e77f3ac25759a.tar.gz portage-a789bab3f757cbefe7d67db59a0e77f3ac25759a.tar.bz2 portage-a789bab3f757cbefe7d67db59a0e77f3ac25759a.zip |
Handle InvalidAtom from vardbapi.match() in has_version.
-rwxr-xr-x | bin/portageq | 4 |
1 files changed, 4 insertions, 0 deletions
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 |