[PATCH 3/8] rel-html: really listen to ignore_changelogs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx>

When a project was setting ignore_changelogs the changelog
was still printed if and only if the changelog happened
to be found by chance and it was also signed. In practice
if a project wants to abandon changelogs this would then
produce an output that would likely make users think the
developers forgot to provide a changelog. Simply ignore
changelogs even if they are found for older releases when
ignore_changelogs is set.

Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx>
---
 rel-html.py |   18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/rel-html.py b/rel-html.py
index 068d855..f50fa6f 100755
--- a/rel-html.py
+++ b/rel-html.py
@@ -1008,14 +1008,7 @@ class rel_html_gen(HTMLParser):
 				sys.stdout.write('\t\t\t\t<td><a href="%s">%s</a></td>\n' % \
 						 (r.get('changelog_url'), "ChangeLog"))
 			else:
-				if (r.get('changelog_exists')):
-					if (r['signed_changelog_exists']):
-						sys.stdout.write('\t\t\t\t<td><a href="%s">%s</a></td>\n' % \
-								 (r.get('changelog_url'), "ChangeLog"))
-					else:
-						sys.stdout.write('\t\t\t\t<td></td>\n')
-				else:
-					sys.stdout.write('\t\t\t\t<td></td>\n')
+				sys.stdout.write('\t\t\t\t<td></td>\n')
 			sys.stdout.write('\t\t\t\t</tr>')
 
 		sys.stdout.write('\t\t\t</table>\n')
@@ -1053,14 +1046,7 @@ class rel_html_gen(HTMLParser):
 				sys.stdout.write('\t\t\t\t<td><a href="%s">%s</a></td>\n' % \
 						 (r.get('changelog_url'), "ChangeLog"))
 			else:
-				if (r.get('changelog_exists')):
-					if (r['signed_changelog_exists']):
-						sys.stdout.write('\t\t\t\t<td><a href="%s">%s</a></td>\n' % \
-								 (r.get('changelog_url'), "ChangeLog"))
-					else:
-						sys.stdout.write('\t\t\t\t<td></td>\n')
-				else:
-					sys.stdout.write('\t\t\t\t<td></td>\n')
+				sys.stdout.write('\t\t\t\t<td></td>\n')
 			sys.stdout.write('\t\t\t\t</tr>')
 
 		sys.stdout.write('\t\t\t</table>\n')
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux