From 16138e6ff95f31822d712225ab7d238ec2faa8d4 Mon Sep 17 00:00:00 2001 From: Adrian Mangeac Date: Fri, 4 Oct 2019 14:10:43 +0200 Subject: Add new information to added/removed packages Update the added and removed packages tables with two new columns. The information should give an idea about why the package was added/removed. Change-Id: Ibae097fa5cab4f8b3962aadcbf8603d778d97e2c Signed-off-by: Adrian Mangeac --- doc/gen_pkgdiff.py | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/doc/gen_pkgdiff.py b/doc/gen_pkgdiff.py index 7697469..5baa08e 100644 --- a/doc/gen_pkgdiff.py +++ b/doc/gen_pkgdiff.py @@ -90,10 +90,12 @@ def get_pkgs(file_spec): for row in tab: pname = row[0].text pver = row[1].text + pdesc = row[2].text if not pname in plist: - plist[pname] = set() + plist[pname] = list() - plist[pname].add(pver) + plist[pname].append(pver) + plist[pname].append(pdesc) return set(plist), plist @@ -159,19 +161,28 @@ print '
' print ' Added Packages' print ' The following packages were added to this Enea Linux release:' print ' ' -print ' ' +print ' ' +print ' ' +print ' ' +print ' ' +print ' ' print ' ' print ' ' print ' Package' print ' Version(s)' +print ' Description' +print ' Comment' print ' ' print ' ' print ' ' for p in sorted(list(added)): + new_p = new_pdict[p] print ' ' print ' %s' % p - print ' %s' % ", ".join(sorted(new_pdict[p])) + print ' %s' % new_p[0] + print ' %s' % new_p[1] + print ' ' print ' ' print ' ' @@ -183,18 +194,27 @@ print '
' print ' Removed Packages' print ' The following packages were removed from this Enea Linux release:' print ' ' -print ' ' +print ' ' +print ' ' +print ' ' +print ' ' +print ' ' print ' ' print ' ' print ' Package' print ' Version(s)' +print ' Description' +print ' Comment' print ' ' print ' ' print ' ' for p in sorted(list(removed)): + old_p = old_pdict[p] print ' ' print ' %s' % p - print ' %s' % ", ".join(sorted(old_pdict[p])) + print ' %s' % old_p[0] + print ' %s' % old_p[1] + print ' ' print ' ' print ' ' print ' ' @@ -215,10 +235,12 @@ print ' ' print ' ' print ' ' for p in sorted(list(changed)): + old_p = old_pdict[p] + new_p = new_pdict[p] print ' ' print ' %s' % p - print ' %s' % ", ".join(sorted(old_pdict[p])) - print ' %s' % ", ".join(sorted(new_pdict[p])) + print ' %s' % old_p[0] + print ' %s' % new_p[0] print ' ' print ' ' -- cgit v1.2.3-54-g00ecf