summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-01 10:23:55 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-01 10:23:55 +0200
commitfbe7d00bf36e05ed3aa5acdb292066c62f6fc6ce (patch)
tree6c72613e2557b1bef4a52b86bd868af5c6977adc /bin
parent27d6da4d7114dbc2c0d0c8a193225826d4f4e122 (diff)
downloadjenkins.debian.net-fbe7d00bf36e05ed3aa5acdb292066c62f6fc6ce.tar.xz
prepare for binary packages support
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_repository_comparison.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 67dc6d2e..1c19da18 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -13,6 +13,10 @@ common_init "$@"
VIEW=repositories
PAGE=index_${VIEW}.html
SOURCES=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
+declare -a PACKAGES
+for ARCH in $ARCHES ; do
+ PACKAGES[$ARCH]=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
+done
TMPFILE=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
MODIFIED_IN_SID=0
@@ -180,8 +184,14 @@ for PKG in $SOURCEPKGS ; do
write_page "</tr>"
done
write_page "</table></p>"
-rm $SOURCES $TMPFILE
write_page_footer
publish_page
echo "$MODIFIED_IN_SID" > /srv/reproducible-results/modified_in_sid.txt
echo "$MODIFIED_IN_EXP" > /srv/reproducible-results/modified_in_exp.txt
+
+# cleanup
+rm $SOURCES $TMPFILE
+for ARCH in $ARCHES ; do
+ rm ${PACKAGES[$ARCH]}
+done
+