diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-06 07:37:19 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-06 07:37:19 +0000 |
commit | fed10d47a1d1d3d0362c9868aa24a5f94e012525 (patch) | |
tree | 77c2aa93af2fc7d6c6922fb2f36f571f803bc8f3 | |
parent | fb1a654e2ef880342a610ce1d4a2bfc87a2f737d (diff) | |
download | portage-fed10d47a1d1d3d0362c9868aa24a5f94e012525.tar.gz portage-fed10d47a1d1d3d0362c9868aa24a5f94e012525.tar.bz2 portage-fed10d47a1d1d3d0362c9868aa24a5f94e012525.zip |
Make repoman generate a syntax error if a slot dep is used with EAPI == 0.
svn path=/main/trunk/; revision=4604
-rwxr-xr-x | bin/repoman | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index 55f147633..7abe77756 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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))) |