[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: make curl calls less verbose and more informative

Holger Levsen holger at moszumanska.debian.org
Wed Nov 11 14:40:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 926582cc28a0c1e949e10ac6bf3a766db41c147d
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Nov 11 15:37:20 2015 +0100

    reproducible: make curl calls less verbose and more informative
---
 bin/reproducible_html_repository_comparison.sh | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index d5fdd34..19525f3 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 "</pre></p>"
 write_page "<p><table><tr><th>package</th><th>git repo</th><th>PTS link</th><th>usertagged bug</th><th>old versions in our repo<br />(needed for reproducing old builds)</th><th>version in our repo<br />(available binary packages per architecture)</th><th>version in 'testing'</th><th>version in 'unstable'</th><th>version in 'experimental'</th></tr>"
 
-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<br /><span class=\"red\">(no git repository found)</span>"
 	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 "<a href=\"$URL\">$GIT</a><br /><span class=\"purple\">non-standard branch</span>"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list