From c20f2004c32d25f4f6de54f552d06a4c58d6d96b Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Sun, 2 Aug 2015 14:58:58 +0200
Subject: reproducible: include binary packages in the comparison
---
bin/reproducible_html_repository_comparison.sh | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
(limited to 'bin/reproducible_html_repository_comparison.sh')
diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 1c19da18..eabb454e 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -13,10 +13,7 @@ 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
+PACKAGES=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
TMPFILE=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
MODIFIED_IN_SID=0
@@ -31,6 +28,7 @@ write_page "
"
write_page "package | git repo | PTS link | usertagged bug | old versions in our repo (needed for reproducing old builds) | version in our repo | version in 'testing' | version in 'unstable' | version in 'experimental' |
"
curl http://reproducible.alioth.debian.org/debian/Sources > $SOURCES
+curl http://reproducible.alioth.debian.org/debian/Packages > $PACKAGES
SOURCEPKGS=$(grep-dctrl -n -s Package -r -FPackage . $SOURCES | sort -u)
for PKG in $SOURCEPKGS ; do
echo "Processing $PKG..."
@@ -106,8 +104,14 @@ for PKG in $SOURCEPKGS ; do
fi
done
if [ ! -z "$BET" ] ; then
+ BINARIES=""
+ for ARCH in $ARCHS ; do
+ i="$ARCH: $(grep-dctrl -n -s Package -r -FPackage $PKG --and -FVersion $BET --and -FArchitecture all --or -FArchitecture $ARCH Packages|xargs -r echo)"
+ BINARIES="$BINARIES$i
"
+ done
BET="$BET"
else
+ BINARIES=""
BET=" "
fi
if [ ! -z "$CRUFT" ] ; then
@@ -177,7 +181,7 @@ for PKG in $SOURCEPKGS ; do
done
write_page " bugs | "
write_page " $CRUFT | "
- write_page " $BET | "
+ write_page " $BET $BINARIES | "
write_page " $CTEST | "
write_page " $CSID | "
write_page " $CEXP | "
@@ -190,8 +194,5 @@ 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
+rm $SOURCES $PACKAGES $TMPFILE
--
cgit v1.2.3-70-g09d2