From: Zac Medico Date: Tue, 31 May 2011 22:22:02 +0000 (-0700) Subject: repoman: disallow EMERGE_FROM in EAPI 4 X-Git-Tag: v2.2.0_alpha38~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10f6c6d3c028a509ed943ef76633c72dbbcff7f6;p=portage.git repoman: disallow EMERGE_FROM in EAPI 4 We already have the Eapi4GoneVars check for AA and KV which were removed in EAPI 4, so we can re-use it to disallow EMERGE_FROM. This will fix bug #368865. --- diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index bc25cd58e..c9ada5fbb 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -619,10 +619,11 @@ class Eapi4IncompatibleFuncs(LineCheck): class Eapi4GoneVars(LineCheck): repoman_check_name = 'EAPI.incompatible' ignore_line = re.compile(r'(^\s*#)') - undefined_vars_re = re.compile(r'.*\$(\{(AA|KV)\}|(AA|KV))') + undefined_vars_re = re.compile(r'.*\$(\{(AA|KV|EMERGE_FROM)\}|(AA|KV|EMERGE_FROM))') def check_eapi(self, eapi): - return not eapi_exports_AA(eapi) or not eapi_exports_KV(eapi) + # AA, KV, and EMERGE_FROM should not be referenced in EAPI 4 or later. + return not eapi_exports_AA(eapi) def check(self, num, line): m = self.undefined_vars_re.match(line)