From: Zac Medico Date: Thu, 19 Jun 2008 05:30:28 +0000 (-0000) Subject: Pass a Package instance into LineCheck.new(). (trunk r10725) X-Git-Tag: v2.1.4.5~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30fdff671bf1227915dfee0d9b5251408f2757b2;p=portage.git Pass a Package instance into LineCheck.new(). (trunk r10725) svn path=/main/branches/2.1.2/; revision=10726 --- 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