diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-28 22:14:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-28 22:14:25 +0000 |
commit | a25821b89360613830b5d46c156c0a94f0bf78f6 (patch) | |
tree | a11df22de1f359292deeab60f6f9278e36ce6b55 | |
parent | 18a98e25f811200020d375146c06167bc8937231 (diff) | |
download | portage-a25821b89360613830b5d46c156c0a94f0bf78f6.tar.gz portage-a25821b89360613830b5d46c156c0a94f0bf78f6.tar.bz2 portage-a25821b89360613830b5d46c156c0a94f0bf78f6.zip |
Bug #229859 - Also add atom validation to match().
svn path=/main/trunk/; revision=10837
-rwxr-xr-x | bin/portageq | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq index b7cd11869..5b7f5f72f 100755 --- a/bin/portageq +++ b/bin/portageq @@ -276,6 +276,10 @@ def match(argv): sys.exit(2) root, atom = argv if atom: + if atom_validate_strict and not portage.isvalidatom(atom): + portage.writemsg("ERROR: Invalid atom: '%s'\n" % atom, + noiselevel=-1) + return 2 results = portage.db[root]["vartree"].dbapi.match(atom) else: results = portage.db[root]["vartree"].dbapi.cpv_all() |