From 926582cc28a0c1e949e10ac6bf3a766db41c147d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 11 Nov 2015 15:37:20 +0100 Subject: reproducible: make curl calls less verbose and more informative --- bin/reproducible_html_repository_comparison.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index d5fdd340..19525f31 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -29,6 +29,11 @@ write_row() { echo "$1" >> $ROW } +custom_curl() { + echo "$(date -u) - downloading $1 to $2" + curl -s $1 > $2 +} + ARCH="amd64" SUITE="unstable" echo "$(date) - starting to write $PAGE page." @@ -39,8 +44,8 @@ write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./" write_page "

" write_page "

" -curl http://reproducible.alioth.debian.org/debian/Sources > $SOURCES -curl http://reproducible.alioth.debian.org/debian/Packages > $PACKAGES +custom_curl http://reproducible.alioth.debian.org/debian/Sources $SOURCES +custom_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..." @@ -159,12 +164,12 @@ for PKG in $SOURCEPKGS ; do *) URL="http://anonscm.debian.org/cgit/reproducible/$GIT/?h=pu/reproducible_builds" ;; esac - curl $URL > $TMPFILE + custom_curl $URL $TMPFILE if [ "$(grep "'error'>No repositories found" $TMPFILE 2>/dev/null)" ] ; then write_row "$URL
(no git repository found)" elif [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then URL="http://anonscm.debian.org/cgit/reproducible/$GIT/?h=merged/reproducible_builds" - curl $URL > $TMPFILE + custom_curl $URL $TMPFILE if [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then if ! $OBSOLETE_IN_SID ; then write_row "$GIT
non-standard branch" -- cgit v1.2.3-70-g09d2
packagegit repoPTS linkusertagged bugold versions in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'testing'version in 'unstable'version in 'experimental'