summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <gentoo@mgorny.alt.pl>2010-07-14 11:12:08 +0200
committerZac Medico <zmedico@gentoo.org>2010-07-14 02:30:43 -0700
commit7c723e76d1595a851dee538097aab3eafbb09661 (patch)
treef55b0ed043748618c259c5a68456b8aa59dec999
parenta428fcdb72faa732366fef584ae3b118190b0d3e (diff)
downloadportage-7c723e76d1595a851dee538097aab3eafbb09661.tar.gz
portage-7c723e76d1595a851dee538097aab3eafbb09661.tar.bz2
portage-7c723e76d1595a851dee538097aab3eafbb09661.zip
Drop deprecated self.eapi saving.
-rw-r--r--pym/repoman/checks.py22
1 files changed, 3 insertions, 19 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index ec8e91324..d403044b0 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -429,13 +429,6 @@ class SrcUnpackPatches(PhaseCheck):
repoman_check_name = 'ebuild.minorsyn'
src_prepare_tools_re = re.compile(r'\s(e?patch|sed)\s')
- def new(self, pkg):
- if pkg.metadata['EAPI'] not in ('0', '1'):
- self.eapi = pkg.metadata['EAPI']
- else:
- self.eapi = None
- self.in_src_unpack = None
-
def check_eapi(self, eapi):
return eapi not in ('0', '1')
@@ -458,11 +451,8 @@ class Eapi3DeprecatedFuncs(LineCheck):
ignore_line = re.compile(r'(^\s*#)')
deprecated_commands_re = re.compile(r'^\s*(check_license)\b')
- def new(self, pkg):
- self.eapi = pkg.metadata['EAPI']
-
def check_eapi(self, eapi):
- return self.eapi not in ('0', '1', '2')
+ return eapi not in ('0', '1', '2')
def check(self, num, line):
m = self.deprecated_commands_re.match(line)
@@ -476,11 +466,8 @@ class Eapi4IncompatibleFuncs(LineCheck):
ignore_line = re.compile(r'(^\s*#)')
banned_commands_re = re.compile(r'^\s*(dosed|dohard)')
- def new(self, pkg):
- self.eapi = pkg.metadata['EAPI']
-
def check_eapi(self, eapi):
- return self.eapi not in ('0', '1', '2', '3', '3_pre2')
+ return eapi not in ('0', '1', '2', '3', '3_pre2')
def check(self, num, line):
m = self.banned_commands_re.match(line)
@@ -493,11 +480,8 @@ class Eapi4GoneVars(LineCheck):
ignore_line = re.compile(r'(^\s*#)')
undefined_vars_re = re.compile(r'.*\$(\{(AA|KV)\}|(AA|KV))')
- def new(self, pkg):
- self.eapi = pkg.metadata['EAPI']
-
def check_eapi(self, eapi):
- return self.eapi not in ('0', '1', '2', '3', '3_pre2')
+ return eapi not in ('0', '1', '2', '3', '3_pre2')
def check(self, num, line):
m = self.undefined_vars_re.match(line)