From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-356319-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QZT8r-0004SZ-0t
	for garchives@archives.gentoo.org; Wed, 22 Jun 2011 19:31:13 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B16A61C08C;
	Wed, 22 Jun 2011 19:31:04 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 7CADE1C08C
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Jun 2011 19:31:04 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0AA1F1B4018
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Jun 2011 19:31:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 527D18003C
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Jun 2011 19:31:03 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <5502d3eb3b860b42778597b99c3a15b4633e9a83.mgorny@gentoo>
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
X-VCS-Repository: proj/qa-scripts
X-VCS-Files: packages-inheriting-eclasses.py
X-VCS-Directories: /
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 5502d3eb3b860b42778597b99c3a15b4633e9a83
Date: Wed, 22 Jun 2011 19:31:03 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: d0b99df0a59dcf5426a277d28edf0990

commit:     5502d3eb3b860b42778597b99c3a15b4633e9a83
Author:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 22 19:31:23 2011 +0000
Commit:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 19:31:23 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qa-scripts.gi=
t;a=3Dcommit;h=3D5502d3eb

p-i-e.py: write sync time in index.html.

---
 packages-inheriting-eclasses.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclass=
es.py
index cc9705b..29770b7 100755
--- a/packages-inheriting-eclasses.py
+++ b/packages-inheriting-eclasses.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python
=20
-import collections, os, os.path, sys
+import collections, datetime, os, os.path, sys
 import pkgcore.config # tested with pkgcore-0.6.4
=20
 def main(argv):
@@ -42,12 +42,14 @@ def main(argv):
 	<body>
 		<h1>Packages inheriting eclasses</h1>
=20
+		<p>(tree synced at %s UTC)</p>
+
 		<ul>
 			%s
 			<li><a href=3D"/">/ (go back)</a></li>
 		</ul>
 	</body>
-</html>''' % (max([len(e) for e in output]), '\n'.join(['<li><a href=3D"=
%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.fromtimes=
tamp(c.syncer['%s syncer' % portdir.location].current_timestamp()), '\n'.=
join(['<li><a href=3D"%s.txt">%s.eclass</a> (%d packages),</li>' % (e, e,=
 len(output[e])) for e in sorted(output)])))
 	f.close()
=20
 	return 0