From 5502d3eb3b860b42778597b99c3a15b4633e9a83 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 22 Jun 2011 21:31:23 +0200 Subject: p-i-e.py: write sync time in index.html. --- packages-inheriting-eclasses.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages-inheriting-eclasses.py') 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):

Packages inheriting eclasses

+

(tree synced at %s UTC)

+ -''' % (max([len(e) for e in output]), '\n'.join(['
  • %s.eclass (%d packages),
  • ' % (e, e, len(output[e])) for e in sorted(output)]))) +''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(c.syncer['%s syncer' % portdir.location].current_timestamp()), '\n'.join(['
  • %s.eclass (%d packages),
  • ' % (e, e, len(output[e])) for e in sorted(output)]))) f.close() return 0 -- cgit v1.2.3-65-gdbad