summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-05 15:07:34 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-05 15:07:34 +0200
commit0bf04ea43b914ea526b2b3217bbf13c96b705110 (patch)
treea1fd74203e57e6101ca8c07fb441f63157d28be6 /bin
parent34cc9e39461fe75c1d78041a50f4c8a2c2748326 (diff)
downloadjenkins.debian.net-0bf04ea43b914ea526b2b3217bbf13c96b705110.tar.xz
reproducible: use $MIRROR variable
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c3fc6353..7a9d21bb 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -25,7 +25,7 @@ sudo apt-get update || ( sleep $(( $RANDOM % 70 + 30 )) ; sudo apt-get update ||
# update sources table in db
update_sources_table() {
TMPFILE=$(mktemp)
- curl http://ftp.de.debian.org/debian/dists/sid/main/source/Sources.xz > $TMPFILE
+ curl $MIRROR/dists/sid/main/source/Sources.xz > $TMPFILE
CSVFILE=$(mktemp)
(xzcat $TMPFILE | egrep "(^Package:|^Version:)" | sed -s "s#^Version: ##g; s#Package: ##g; s#\n# #g"| while read PKG ; do read VERSION ; echo "$PKG,$VERSION" ; done) > $CSVFILE
sqlite3 -csv -init $INIT ${PACKAGES_DB} "DELETE from sources"