summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThomas Lundström <thomas.lundstrom@enea.com>2016-06-13 12:44:09 +0200
committerThomas Lundström <thomas.lundstrom@enea.com>2016-06-13 12:44:09 +0200
commit7d0727ce60c2c8079c81f76509293ad9c7d0d358 (patch)
tree3bc4766d34b9cf447d6deb3196d021a91000756d /doc
parent9b1a3e7321df253a6e1c54b5c5ed4ae937501b0a (diff)
downloadel_manifests-standard-7d0727ce60c2c8079c81f76509293ad9c7d0d358.tar.gz
gen_known_issues.py will now behave well even if there are no issues
Diffstat (limited to 'doc')
-rwxr-xr-x[-rw-r--r--]doc/gen_known_issues.py39
1 files changed, 24 insertions, 15 deletions
diff --git a/doc/gen_known_issues.py b/doc/gen_known_issues.py
index b11f547..ae65f7b 100644..100755
--- a/doc/gen_known_issues.py
+++ b/doc/gen_known_issues.py
@@ -47,16 +47,16 @@ print ' <para>'
47print ' This section lists open bugs in Jira. Extracted at %s.' % time_str 47print ' This section lists open bugs in Jira. Extracted at %s.' % time_str
48print ' </para>' 48print ' </para>'
49print '' 49print ''
50print ' <remark>project = "Linux CR" \\' 50print ' <remark>Jira query: (project = "Linux CR" '
51print ' and issuetype = Bug \\' 51print ' and issuetype = Bug '
52print ' and affectedVersion = "Enea Linux 6" \\' 52print ' and affectedVersion = "Enea Linux 6" '
53print ' and resolution = Unresolved</remark>' 53print ' and resolution = Unresolved)</remark>'
54print '' 54print ''
55print ' <informaltable>' 55print ' <informaltable>'
56print ' <tgroup cols="2">' 56print ' <tgroup cols="2">'
57print ' <colspec colwidth="6*" />' 57print ' <colspec colwidth="6*" colname="c1"/>'
58print '' 58print ''
59print ' <colspec align="center" colwidth="1*" />' 59print ' <colspec align="center" colwidth="1*" colname="c2"/>'
60print '' 60print ''
61print ' <thead>' 61print ' <thead>'
62print ' <row>' 62print ' <row>'
@@ -66,20 +66,29 @@ print ' <entry>Enea Ref</entry>'
66print ' </row>' 66print ' </row>'
67print ' </thead>' 67print ' </thead>'
68print '' 68print ''
69print ' <tbody>' 69print ' <tbody>',
70 70
71for bug in sorted(bugs): 71if bugs:
72 print '' 72 for bug in sorted(bugs):
73 print ''
74 print ' <row>'
75 print ' <entry>%s</entry>' % bug[1]
76 print ''
77 print ' <entry>%s</entry>' % bug[0]
78 print ' </row>'
79
80else:
73 print ' <row>' 81 print ' <row>'
74 print ' <entry>%s</entry>' % bug[1] 82 print ' <entry namest="c1" nameend="c2" align="center">'
75 print '' 83 print ' No issues found'
76 print ' <entry>%s</entry>' % bug[0] 84 print ' </entry>'
77 print ' </row>' 85 print ' </row>'
78 86
79print ' </tbody>' 87print ' </tbody>'
80print ' </tgroup>' 88print ' </tgroup>'
81print ' </informaltable>' 89print ' </informaltable>'
82print ' <para>' 90
83print ' Number of open bugs: %d' % len(bugs) 91if bugs:
84print ' </para>' 92 print ' <para>Number of open bugs: %d</para>' % len(bugs)
93
85print '</section>' 94print '</section>'