summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_repository_comparison.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-10-03 14:33:08 +0200
committerHolger Levsen <holger@layer-acht.org>2016-10-03 14:33:08 +0200
commit6589398498dd9b11d73e09abd731cd74389e2e2b (patch)
tree7951ee9de7c5ba747b84b0a94bc0910468d4e0e8 /bin/reproducible_html_repository_comparison.sh
parent03b40b7e5952dbbddb3f5565d54c2ed656b4a4c7 (diff)
downloadjenkins.debian.net-6589398498dd9b11d73e09abd731cd74389e2e2b.tar.xz
reproducible Debian: only show obsolete packages table if there are some
Diffstat (limited to 'bin/reproducible_html_repository_comparison.sh')
-rwxr-xr-xbin/reproducible_html_repository_comparison.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 34441ab3..c1de43b3 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -234,9 +234,11 @@ for PKG in $SOURCEPKGS ; do
done
cat $TABLE_TODO >> $PAGE
write_page "</table></p>"
-write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
-cat $TABLE_DONE >> $PAGE
-write_page "</table></p>"
+if [ -s $TABLE_DONE ] ; then
+ write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
+ cat $TABLE_DONE >> $PAGE
+ write_page "</table></p>"
+fi
write_page_footer
publish_page debian
echo "$MODIFIED_IN_SID" > /srv/reproducible-results/modified_in_sid.txt