aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-06-22 21:31:23 +0200
committerMichał Górny <mgorny@gentoo.org>2011-06-22 21:31:23 +0200
commit5502d3eb3b860b42778597b99c3a15b4633e9a83 (patch)
tree93ec5a99cdd61d61ea79e19524c3f9198ee5708f /packages-inheriting-eclasses.py
parentp-i-e.py: Fix the index link. (diff)
downloadqa-scripts-5502d3eb3b860b42778597b99c3a15b4633e9a83.tar.gz
qa-scripts-5502d3eb3b860b42778597b99c3a15b4633e9a83.tar.bz2
qa-scripts-5502d3eb3b860b42778597b99c3a15b4633e9a83.zip
p-i-e.py: write sync time in index.html.
Diffstat (limited to 'packages-inheriting-eclasses.py')
-rwxr-xr-xpackages-inheriting-eclasses.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py
index cc9705b..29770b7 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
-import collections, os, os.path, sys
+import collections, datetime, os, os.path, sys
import pkgcore.config # tested with pkgcore-0.6.4
def main(argv):
@@ -42,12 +42,14 @@ def main(argv):
<body>
<h1>Packages inheriting eclasses</h1>
+ <p>(tree synced at %s UTC)</p>
+
<ul>
%s
<li><a href="/">/ (go back)</a></li>
</ul>
</body>
-</html>''' % (max([len(e) for e in output]), '\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['%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)])))
f.close()
return 0