summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-08 02:19:46 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-08 02:19:46 +0000
commitcdef6f181b66a4fd426cc620bb06bb9c8d0bf411 (patch)
tree9e19f2756363d09e1fd7b7bcc305526c9dd71638 /pym/repoman/checks.py
parentInside, create_trees(), pass target_root="/" into the config constructor (diff)
downloadportage-multirepo-cdef6f181b66a4fd426cc620bb06bb9c8d0bf411.tar.gz
portage-multirepo-cdef6f181b66a4fd426cc620bb06bb9c8d0bf411.tar.bz2
portage-multirepo-cdef6f181b66a4fd426cc620bb06bb9c8d0bf411.zip
Make repoman pass Package instances into run_checks(), so that the checks
can use the Package.mtime and inherited attributes. svn path=/main/trunk/; revision=10600
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r--pym/repoman/checks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 7bc9d990..3c202cad 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -221,11 +221,11 @@ _iuse_def_re = re.compile(r'^IUSE=.*')
_comment_re = re.compile(r'(^|\s*)#')
_autotools_func_re = re.compile(r'(^|\s)(eautomake|eautoconf|eautoreconf)(\s|$)')
-def run_checks(contents, st_mtime, inherited=None):
+def run_checks(contents, pkg):
checks = list(_constant_checks)
- checks.append(EbuildHeader(st_mtime))
+ checks.append(EbuildHeader(pkg.mtime))
iuse_def = None
- inherit_autotools = inherited and "autotools" in inherited
+ inherit_autotools = "autotools" in pkg.inherited
autotools_func_call = None
for num, line in enumerate(contents):
comment = _comment_re.match(line)