summaryrefslogtreecommitdiff
path: root/pre-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-build.sh')
-rwxr-xr-xpre-build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/pre-build.sh b/pre-build.sh
new file mode 100755
index 00000000..6d019603
--- /dev/null
+++ b/pre-build.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+echo "updating Ubuntu mirror list from launchpad"
+if [ -n "$https_proxy" ]; then
+ echo "disabling https_proxy as Python's urllib doesn't support it; see #94130"
+ unset https_proxy
+fi
+utils/get_ubuntu_mirrors_from_lp.py > data/templates/Ubuntu.mirrors
+
+echo "updating Debian mirror list"
+( cd utils; ./get_debian_mirrors.py; )