summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Mangeac <Adrian.Mangeac@enea.com>2019-10-04 14:10:43 +0200
committerAdrian Mangeac <Adrian.Mangeac@enea.com>2019-10-22 13:40:25 +0200
commit16138e6ff95f31822d712225ab7d238ec2faa8d4 (patch)
treefe6c3bdf8324fbe77698a6bdf2dfc1fa545bead8
parent633a7ede5db844ceec6822ffc62129e01870e227 (diff)
downloadel_releases-standard-16138e6ff95f31822d712225ab7d238ec2faa8d4.tar.gz
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 <Adrian.Mangeac@enea.com>
-rw-r--r--doc/gen_pkgdiff.py38
1 files 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):
90 for row in tab: 90 for row in tab:
91 pname = row[0].text 91 pname = row[0].text
92 pver = row[1].text 92 pver = row[1].text
93 pdesc = row[2].text
93 if not pname in plist: 94 if not pname in plist:
94 plist[pname] = set() 95 plist[pname] = list()
95 96
96 plist[pname].add(pver) 97 plist[pname].append(pver)
98 plist[pname].append(pdesc)
97 99
98 return set(plist), plist 100 return set(plist), plist
99 101
@@ -159,19 +161,28 @@ print ' <section id="relinfo-added-packages">'
159print ' <title>Added Packages</title>' 161print ' <title>Added Packages</title>'
160print ' <para>The following packages were added to this Enea Linux release:</para>' 162print ' <para>The following packages were added to this Enea Linux release:</para>'
161print ' <informaltable>' 163print ' <informaltable>'
162print ' <tgroup cols="2">' 164print ' <tgroup cols="4">'
165print ' <colspec colwidth="2*"/>'
166print ' <colspec colwidth="1*"/>'
167print ' <colspec colwidth="5*"/>'
168print ' <colspec colwidth="2*"/>'
163print ' <thead>' 169print ' <thead>'
164print ' <row>' 170print ' <row>'
165print ' <entry>Package</entry>' 171print ' <entry>Package</entry>'
166print ' <entry>Version(s)</entry>' 172print ' <entry>Version(s)</entry>'
173print ' <entry>Description</entry>'
174print ' <entry>Comment</entry>'
167print ' </row>' 175print ' </row>'
168print ' </thead>' 176print ' </thead>'
169print ' <tbody>' 177print ' <tbody>'
170 178
171for p in sorted(list(added)): 179for p in sorted(list(added)):
180 new_p = new_pdict[p]
172 print ' <row>' 181 print ' <row>'
173 print ' <entry>%s</entry>' % p 182 print ' <entry>%s</entry>' % p
174 print ' <entry>%s</entry>' % ", ".join(sorted(new_pdict[p])) 183 print ' <entry>%s</entry>' % new_p[0]
184 print ' <entry>%s</entry>' % new_p[1]
185 print ' <entry></entry>'
175 print ' </row>' 186 print ' </row>'
176 187
177print ' </tbody>' 188print ' </tbody>'
@@ -183,18 +194,27 @@ print ' <section id="relinfo-removed-packages">'
183print ' <title>Removed Packages</title>' 194print ' <title>Removed Packages</title>'
184print ' <para>The following packages were removed from this Enea Linux release:</para>' 195print ' <para>The following packages were removed from this Enea Linux release:</para>'
185print ' <informaltable>' 196print ' <informaltable>'
186print ' <tgroup cols="2">' 197print ' <tgroup cols="4">'
198print ' <colspec colwidth="2*"/>'
199print ' <colspec colwidth="1*"/>'
200print ' <colspec colwidth="5*"/>'
201print ' <colspec colwidth="2*"/>'
187print ' <thead>' 202print ' <thead>'
188print ' <row>' 203print ' <row>'
189print ' <entry>Package</entry>' 204print ' <entry>Package</entry>'
190print ' <entry>Version(s)</entry>' 205print ' <entry>Version(s)</entry>'
206print ' <entry>Description</entry>'
207print ' <entry>Comment</entry>'
191print ' </row>' 208print ' </row>'
192print ' </thead>' 209print ' </thead>'
193print ' <tbody>' 210print ' <tbody>'
194for p in sorted(list(removed)): 211for p in sorted(list(removed)):
212 old_p = old_pdict[p]
195 print ' <row>' 213 print ' <row>'
196 print ' <entry>%s</entry>' % p 214 print ' <entry>%s</entry>' % p
197 print ' <entry>%s</entry>' % ", ".join(sorted(old_pdict[p])) 215 print ' <entry>%s</entry>' % old_p[0]
216 print ' <entry>%s</entry>' % old_p[1]
217 print ' <entry></entry>'
198 print ' </row>' 218 print ' </row>'
199print ' </tbody>' 219print ' </tbody>'
200print ' </tgroup>' 220print ' </tgroup>'
@@ -215,10 +235,12 @@ print ' </row>'
215print ' </thead>' 235print ' </thead>'
216print ' <tbody>' 236print ' <tbody>'
217for p in sorted(list(changed)): 237for p in sorted(list(changed)):
238 old_p = old_pdict[p]
239 new_p = new_pdict[p]
218 print ' <row>' 240 print ' <row>'
219 print ' <entry>%s</entry>' % p 241 print ' <entry>%s</entry>' % p
220 print ' <entry>%s</entry>' % ", ".join(sorted(old_pdict[p])) 242 print ' <entry>%s</entry>' % old_p[0]
221 print ' <entry>%s</entry>' % ", ".join(sorted(new_pdict[p])) 243 print ' <entry>%s</entry>' % new_p[0]
222 print ' </row>' 244 print ' </row>'
223 245
224print ' </tbody>' 246print ' </tbody>'