From 30fdff671bf1227915dfee0d9b5251408f2757b2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Jun 2008 05:30:28 +0000 Subject: [PATCH] Pass a Package instance into LineCheck.new(). (trunk r10725) svn path=/main/branches/2.1.2/; revision=10726 --- bin/repoman | 8 ++++---- 1 file 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 -- 2.26.2