1 |
Author: zmedico |
2 |
Date: 2008-06-28 22:14:25 +0000 (Sat, 28 Jun 2008) |
3 |
New Revision: 10837 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/portageq |
7 |
Log: |
8 |
Bug #229859 - Also add atom validation to match(). |
9 |
|
10 |
|
11 |
Modified: main/trunk/bin/portageq |
12 |
=================================================================== |
13 |
--- main/trunk/bin/portageq 2008-06-28 21:58:02 UTC (rev 10836) |
14 |
+++ main/trunk/bin/portageq 2008-06-28 22:14:25 UTC (rev 10837) |
15 |
@@ -276,6 +276,10 @@ |
16 |
sys.exit(2) |
17 |
root, atom = argv |
18 |
if atom: |
19 |
+ if atom_validate_strict and not portage.isvalidatom(atom): |
20 |
+ portage.writemsg("ERROR: Invalid atom: '%s'\n" % atom, |
21 |
+ noiselevel=-1) |
22 |
+ return 2 |
23 |
results = portage.db[root]["vartree"].dbapi.match(atom) |
24 |
else: |
25 |
results = portage.db[root]["vartree"].dbapi.cpv_all() |
26 |
|
27 |
-- |
28 |
gentoo-commits@l.g.o mailing list |