aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-04-10 09:56:16 +0200
committerMichał Górny <mgorny@gentoo.org>2012-04-10 09:56:16 +0200
commitbec63d2692577a57c72d3d93ecf10007f96b2233 (patch)
tree19d39edc2a4b7a251120e3d621e57edd644ba852 /packages-inheriting-eclasses.py
parentFix pkgsplit error when using slots and globs (diff)
downloadqa-scripts-bec63d2692577a57c72d3d93ecf10007f96b2233.tar.gz
qa-scripts-bec63d2692577a57c72d3d93ecf10007f96b2233.tar.bz2
qa-scripts-bec63d2692577a57c72d3d93ecf10007f96b2233.zip
Update for pkgcore API changes.
Diffstat (limited to 'packages-inheriting-eclasses.py')
-rwxr-xr-xpackages-inheriting-eclasses.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index 29770b7..0e88c42 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import collections, datetime, os, os.path, sys
-import pkgcore.config # tested with pkgcore-0.6.4
+import pkgcore.config # tested with pkgcore-0.7.7.8
def main(argv):
try:
@@ -49,7 +49,7 @@ def main(argv):
<li><a href="/">/ (go back)</a></li>
</ul>
</body>
-</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['%s syncer' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
+</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['sync:%s' % portdir.location].current_timestamp()), '\n'.join(['<li><a href="%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e, len(output[e])) for e in sorted(output)])))
f.close()
return 0