summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-14 14:57:13 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-16 08:38:33 +0900
commit9970f3f9d81e544b2f33cc06772b8daa2b8a1aaf (patch)
treeadc46ff7d62f63f04b28744b0ffaf0dcabdbb93e /scripts
parent70be1470a5162fd958ee7ad2efb57250c1a4bd66 (diff)
scripts: myhtml.py: don't indicate "upstream" if not exist
commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") fixup:ed to always indicate a "upstream" table. But it indicates empty table even though there is no "upstream" tag. This patch fixup it to indicate "upstream" table only if exist. Fixes: commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/myhtml.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/myhtml.py b/scripts/myhtml.py
index e633f65..e46b65e 100755
--- a/scripts/myhtml.py
+++ b/scripts/myhtml.py
@@ -569,17 +569,21 @@ class periject_html(base.base):
def task_commit(self, v):
bsp = v.get_data("bsp-commits")
+ upstream = v.get_data("upstream")
+
with html("table", {"border":"1"}):
with html("tr"):
if (bsp):
html("th").print("BSP")
- html("th").print("upstream")
+ if (upstream):
+ html("th").print("upstream")
with html("tr"):
if (bsp):
with html("td"):
self.task_commit_bsp(bsp)
- with html("td"):
- self.task_commit_upstream(v)
+ if (upstream):
+ with html("td"):
+ self.task_commit_upstream(v)
#--------------------
# task_comment