diff options
author | 2014-11-24 15:11:07 +0200 | |
---|---|---|
committer | 2014-11-24 15:15:39 +0200 | |
commit | 6be76dbe08c507fc54079ddbc26866bde80fc936 (patch) | |
tree | ccd20f0dc3a2009108577711b42fe91ad53fdbc5 /packages-inheriting-eclasses.py | |
parent | dereference symlinks when needed (diff) | |
download | qa-scripts-6be76dbe08c507fc54079ddbc26866bde80fc936.tar.gz qa-scripts-6be76dbe08c507fc54079ddbc26866bde80fc936.tar.bz2 qa-scripts-6be76dbe08c507fc54079ddbc26866bde80fc936.zip |
fix packages-inheriting-eclasses script from failing getting timestamp
Pkgcore doesn't support repos.conf yet. As a result it fails
to get the timestamp from syncer.
I switched timestamp handling from pkgcore to os.path.getmtime.
Signed-off-by: Pavlos Ratis <dastergon@gentoo.org>
Diffstat (limited to 'packages-inheriting-eclasses.py')
-rwxr-xr-x | packages-inheriting-eclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages-inheriting-eclasses.py b/packages-inheriting-eclasses.py index c2ae5ae..eace643 100755 --- a/packages-inheriting-eclasses.py +++ b/packages-inheriting-eclasses.py @@ -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['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)]))) +</html>''' % (max([len(e) for e in output]), datetime.datetime.fromtimestamp(os.path.getmtime(portdir.location)).strftime("%a %b %d %Y %H:%M:%S"), '\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 |