projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb43a0a
)
Use portage.isvalidatom() for atom validation in repoman.
author
Zac Medico
<zmedico@gentoo.org>
Sat, 9 Dec 2006 19:30:13 +0000
(19:30 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 9 Dec 2006 19:30:13 +0000
(19:30 -0000)
svn path=/main/trunk/; revision=5240
bin/repoman
patch
|
blob
|
history
diff --git
a/bin/repoman
b/bin/repoman
index e2f4ae2c2091fff83c2ae6126684f5ea40fed898..451bd21d072299a8cc19d1f22c90b08664718399 100755
(executable)
--- a/
bin/repoman
+++ b/
bin/repoman
@@
-1099,7
+1099,7
@@
for x in scanlist:
if mytype in ("DEPEND", "RDEPEND", "PDEPEND"):
for token in filter(lambda x: not (x.endswith("?") or x.strip() in ("||", "&&", "(", ")")), mydepstr.split()):
- if not
"/" in token
or \
+ if not
portage.isvalidatom(token)
or \
":" in token and myaux["EAPI"] == "0":
badsyntax.append("'%s' not a valid atom" % token)