Make repoman generate a syntax error if a slot dep is used with EAPI == 0.
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Oct 2006 07:37:19 +0000 (07:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Oct 2006 07:37:19 +0000 (07:37 -0000)
svn path=/main/trunk/; revision=4604

bin/repoman

index 55f147633b39cd818aa8b0cb8d3588cc8c20e6fe..7abe7775653ef179b63baa395f199d4b408376b4 100755 (executable)
@@ -1092,7 +1092,8 @@ 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:
+                                       if not "/" in token or \
+                                               ":" in token and myaux["EAPI"] == "0":
                                                badsyntax.append("'%s' not a valid atom" % token)
 
                        type_list.extend([mytype] * (len(badsyntax) - len(type_list)))