diff options
author | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-10-04 14:10:43 +0200 |
---|---|---|
committer | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-10-22 13:40:25 +0200 |
commit | 16138e6ff95f31822d712225ab7d238ec2faa8d4 (patch) | |
tree | fe6c3bdf8324fbe77698a6bdf2dfc1fa545bead8 /doc/gen_pkgdiff.py | |
parent | 633a7ede5db844ceec6822ffc62129e01870e227 (diff) | |
download | el_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>
Diffstat (limited to 'doc/gen_pkgdiff.py')
-rw-r--r-- | doc/gen_pkgdiff.py | 38 |
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">' | |||
159 | print ' <title>Added Packages</title>' | 161 | print ' <title>Added Packages</title>' |
160 | print ' <para>The following packages were added to this Enea Linux release:</para>' | 162 | print ' <para>The following packages were added to this Enea Linux release:</para>' |
161 | print ' <informaltable>' | 163 | print ' <informaltable>' |
162 | print ' <tgroup cols="2">' | 164 | print ' <tgroup cols="4">' |
165 | print ' <colspec colwidth="2*"/>' | ||
166 | print ' <colspec colwidth="1*"/>' | ||
167 | print ' <colspec colwidth="5*"/>' | ||
168 | print ' <colspec colwidth="2*"/>' | ||
163 | print ' <thead>' | 169 | print ' <thead>' |
164 | print ' <row>' | 170 | print ' <row>' |
165 | print ' <entry>Package</entry>' | 171 | print ' <entry>Package</entry>' |
166 | print ' <entry>Version(s)</entry>' | 172 | print ' <entry>Version(s)</entry>' |
173 | print ' <entry>Description</entry>' | ||
174 | print ' <entry>Comment</entry>' | ||
167 | print ' </row>' | 175 | print ' </row>' |
168 | print ' </thead>' | 176 | print ' </thead>' |
169 | print ' <tbody>' | 177 | print ' <tbody>' |
170 | 178 | ||
171 | for p in sorted(list(added)): | 179 | for 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 | ||
177 | print ' </tbody>' | 188 | print ' </tbody>' |
@@ -183,18 +194,27 @@ print ' <section id="relinfo-removed-packages">' | |||
183 | print ' <title>Removed Packages</title>' | 194 | print ' <title>Removed Packages</title>' |
184 | print ' <para>The following packages were removed from this Enea Linux release:</para>' | 195 | print ' <para>The following packages were removed from this Enea Linux release:</para>' |
185 | print ' <informaltable>' | 196 | print ' <informaltable>' |
186 | print ' <tgroup cols="2">' | 197 | print ' <tgroup cols="4">' |
198 | print ' <colspec colwidth="2*"/>' | ||
199 | print ' <colspec colwidth="1*"/>' | ||
200 | print ' <colspec colwidth="5*"/>' | ||
201 | print ' <colspec colwidth="2*"/>' | ||
187 | print ' <thead>' | 202 | print ' <thead>' |
188 | print ' <row>' | 203 | print ' <row>' |
189 | print ' <entry>Package</entry>' | 204 | print ' <entry>Package</entry>' |
190 | print ' <entry>Version(s)</entry>' | 205 | print ' <entry>Version(s)</entry>' |
206 | print ' <entry>Description</entry>' | ||
207 | print ' <entry>Comment</entry>' | ||
191 | print ' </row>' | 208 | print ' </row>' |
192 | print ' </thead>' | 209 | print ' </thead>' |
193 | print ' <tbody>' | 210 | print ' <tbody>' |
194 | for p in sorted(list(removed)): | 211 | for 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>' |
199 | print ' </tbody>' | 219 | print ' </tbody>' |
200 | print ' </tgroup>' | 220 | print ' </tgroup>' |
@@ -215,10 +235,12 @@ print ' </row>' | |||
215 | print ' </thead>' | 235 | print ' </thead>' |
216 | print ' <tbody>' | 236 | print ' <tbody>' |
217 | for p in sorted(list(changed)): | 237 | for 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 | ||
224 | print ' </tbody>' | 246 | print ' </tbody>' |