From: Zac Medico Date: Sat, 9 Dec 2006 19:30:13 +0000 (-0000) Subject: Use portage.isvalidatom() for atom validation in repoman. X-Git-Tag: v2.1.2~344 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9289a8996757b2645e5a93b8a14300beca8149d0;p=portage.git Use portage.isvalidatom() for atom validation in repoman. svn path=/main/trunk/; revision=5240 --- diff --git a/bin/repoman b/bin/repoman index e2f4ae2c2..451bd21d0 100755 --- 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)