summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-19 05:30:28 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-19 05:30:28 +0000
commit30fdff671bf1227915dfee0d9b5251408f2757b2 (patch)
treeb11cbcc1b1d561e77c6bae9764c97d9bb22dc1b8
parentbebc789fd0923cf388dc2410759ed49c6f7d9463 (diff)
downloadportage-30fdff671bf1227915dfee0d9b5251408f2757b2.tar.gz
portage-30fdff671bf1227915dfee0d9b5251408f2757b2.tar.bz2
portage-30fdff671bf1227915dfee0d9b5251408f2757b2.zip
Pass a Package instance into LineCheck.new(). (trunk r10725)
svn path=/main/branches/2.1.2/; revision=10726
-rwxr-xr-xbin/repoman8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman
index 3439995c2..d108db4b3 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -997,7 +997,7 @@ class LineCheck(object):
"""A regular expression to determine whether to ignore the line"""
ignore_line = False
- def new(self):
+ def new(self, pkg):
pass
def check(self, num, line):
@@ -1138,7 +1138,7 @@ class InheritAutotools(LineCheck):
_autotools_func_re = re.compile(r'(^|\s)(' + \
"|".join(_autotools_funcs) + ')(\s|$)')
- def new(self):
+ def new(self, pkg):
self._inherit_autotools = None
self._autotools_func_call = None
@@ -1162,7 +1162,7 @@ class IUseUndefined(LineCheck):
repoman_check_name = 'IUSE.undefined'
_iuse_def_re = re.compile(r'^IUSE=.*')
- def new(self):
+ def new(self, pkg):
self._iuse_def = None
def check(self, num, line):
@@ -1183,7 +1183,7 @@ def run_checks(contents, pkg):
checks = _constant_checks
for lc in checks:
- lc.new()
+ lc.new(pkg)
for num, line in enumerate(contents):
for lc in checks:
ignore = lc.ignore_line