Commit ae229b81 authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: further improve output

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent a5cd1e94
...@@ -102,9 +102,9 @@ for package in $packages ; do ...@@ -102,9 +102,9 @@ for package in $packages ; do
if [ -e ${package_file}.json ] ; then if [ -e ${package_file}.json ] ; then
count=$(fmt ${package_file}.json | grep -c '\.buildinfo' || true) count=$(fmt ${package_file}.json | grep -c '\.buildinfo' || true)
if [ "${count}" -ge 2 ]; then if [ "${count}" -ge 2 ]; then
echo "$(date -u) - REPRODUCIBLE: $package_file: $SHA1SUM_PKG - reproduced $count times." echo "$(date -u) - REPRODUCIBLE: $package_file ($SHA1SUM_PKG) - reproduced $count times."
else else
echo "$(date -u) - UNREPRODUCIBLE: $package_file: $SHA1SUM_PKG on ftp.debian.org, but nowhere else." echo "$(date -u) - UNREPRODUCIBLE: $package_file ($SHA1SUM_PKG) on ftp.debian.org, but nowhere else."
fi fi
fi fi
continue continue
...@@ -120,10 +120,10 @@ for package in $packages ; do ...@@ -120,10 +120,10 @@ for package in $packages ; do
SHA1SUM_PKG="$(cat ${package_file}.sha1output | awk '{print $1}' )" SHA1SUM_PKG="$(cat ${package_file}.sha1output | awk '{print $1}' )"
fi fi
if [ ! -e ${package_file}.json ]; then if [ ! -e ${package_file}.json ]; then
echo "$(date -u) - downloading .json for ${SHA1SUM_PKG} from buildinfo.debian.net" echo "$(date -u) - downloading .json for ${package_file} (${SHA1SUM_PKG}) from buildinfo.debian.net"
wget --quiet -O ${package_file}.json ${bdn_url}/${SHA1SUM_PKG} || echo "WARNING: failed to download ${bdn_url}/${SHA1SUM_PKG}" wget --quiet -O ${package_file}.json ${bdn_url}/${SHA1SUM_PKG} || echo "WARNING: failed to download ${bdn_url}/${SHA1SUM_PKG}"
else else
echo "$(date -u) - reusing local copy of .json for ${SHA1SUM_PKG} from buildinfo.debian.net" echo "$(date -u) - reusing local copy of .json for ${package_file} (${SHA1SUM_PKG}) from buildinfo.debian.net"
fi fi
rm -f $LOCK rm -f $LOCK
done | tee $log done | tee $log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment