diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2022-07-10 15:56:11 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2022-07-10 16:59:31 +0300 |
commit | 6d1a532ceda80b6c3d483dc29f45c3de5d11e66a (patch) | |
tree | d8dc9a92495b5fcd7a2c12b118648fabeb8cfbd5 | |
parent | 4e30ad12b5bebb1ffa0b1ca65dd9c3a255632395 (diff) |
Add package timestamp to deprecated soversion report
-rw-r--r-- | calm/reports.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/calm/reports.py b/calm/reports.py index df8e455..a29f4a5 100644 --- a/calm/reports.py +++ b/calm/reports.py @@ -175,12 +175,11 @@ def deprecated(args, packages, reportsdir): newer soversion, or has stopped producing this soversion).</p>'''), file=body) print('<table class="grid">', file=body) - print('<tr><th>package</th><th>version</th><th>rdepends</th></tr>', file=body) + print('<tr><th>package</th><th>version</th><th>timestamp</th><th>rdepends</th></tr>', file=body) for depp in sorted(dep_list, key=lambda i: (i.rdepends, i.ts), reverse=True): - po = depp.po - print('<tr><td>%s</td><td>%s</td><td>%s</td></tr>' % - (linkify(depp.pn, depp.po), depp.v, depp.rdepends), file=body) + print('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' % + (linkify(depp.pn, depp.po), depp.v, pkg2html.tsformat(depp.ts), depp.rdepends), file=body) print('</table>', file=body) |