Use portage.isvalidatom() for atom validation in repoman.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 19:30:13 +0000 (19:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 19:30:13 +0000 (19:30 -0000)
svn path=/main/trunk/; revision=5240

bin/repoman

index e2f4ae2c2091fff83c2ae6126684f5ea40fed898..451bd21d072299a8cc19d1f22c90b08664718399 100755 (executable)
@@ -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)