[Reproducible-commits] [misc] 01/03: make usage of torsocks optional via TORSOCKS env variable

Holger Levsen holger at layer-acht.org
Mon May 16 16:19:44 UTC 2016


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

holger pushed a commit to branch master
in repository misc.

commit 586a240ee40deffc242414d23fda3bd2b8e6fa9d
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon May 16 18:13:17 2016 +0200

    make usage of torsocks optional via TORSOCKS env variable
---
 reports/bin/get-latest-data | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/reports/bin/get-latest-data b/reports/bin/get-latest-data
index 49c270e..498b953 100755
--- a/reports/bin/get-latest-data
+++ b/reports/bin/get-latest-data
@@ -1,5 +1,7 @@
 #!/bin/sh
 set -e
+# if you want to use torsocks:
+# export TORSOCKS=torsocks
 
 scriptdir="$(readlink -f "$(dirname "$0")")"
 week_1_end=1430611200 # May 3 2015, 00:00 UTC, Sunday
@@ -34,13 +36,14 @@ export RB_REPORT_WEEK_END=$week_end
 eof
 
 echo >&2 "- reproducible.db"
-wget -q -N https://reproducible.debian.net/reproducible.db
+$TORSOCKS wget -q -N https://reproducible.debian.net/reproducible.db
 
 echo >&2 "- changelogs of newly-reproducible packages"
 mkdir -p changelogs
+
 for url in $("$scriptdir/newly-reproducible" -w "$week" | sed -n -e 's,.*<,,;s,>.*,,p' | sort -u); do
 	p=${url%/*}; p=${p##*/};
-	torsocks wget -q -O changelogs/$p $url || true
+	$TORSOCKS wget -q -O changelogs/$p "$url" || true
 done
 
 echo >&2 "- bug reports that were modified (via ssh to alioth)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list