[Lsb-messages] /var/www/bzr/lsb/devel/python-test r59: Use LSB mirror of Python upstream when upstream fails.
Jeff Licquia
licquia at linuxfoundation.org
Mon Mar 24 16:07:38 UTC 2014
------------------------------------------------------------
revno: 59
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: python-test
timestamp: Mon 2014-03-24 12:07:38 -0400
message:
Use LSB mirror of Python upstream when upstream fails.
modified:
scripts/package/Makefile
-------------- next part --------------
=== modified file 'scripts/package/Makefile'
--- a/scripts/package/Makefile 2014-03-23 04:30:19 +0000
+++ b/scripts/package/Makefile 2014-03-24 16:07:38 +0000
@@ -8,6 +8,10 @@
# need to bump this when we get into the next version
LSB_VERSION=5.0
+# download locations
+PYTHON_UPSTREAM=http://www.python.org/ftp/python
+PYTHON_UPSTREAM_MIRROR=http://ftp.linuxfoundation.org/pub/lsb/app-battery/packages
+
# for pkgchk
DEPS=
@@ -64,7 +68,7 @@
RPM_SRPM_DIR=$(RPM_TMP_BUILD_DIR)/SRPMS
# Override this on the command line to use a different repo
-BZRTREES?=http://bzr.freestandards.org/lsb/devel
+BZRTREES?=http://bzr.linuxfoundation.org/lsb/devel
BZR_MODULE=python-test
TETJ_MODULE=misc-test
@@ -119,10 +123,12 @@
bzr export $(SOURCE0) $(BZRTREES)/$(BZR_MODULE)
$(SOURCE1):
- wget http://www.python.org/ftp/python/$(PVER4)/$(SOURCE1)
+ wget $(PYTHON_UPSTREAM)/$(PVER4)/$(SOURCE1) || \
+ wget $(PYTHON_UPSTREAM_MIRROR)/$(SOURCE1)
$(SOURCE2):
- wget http://www.python.org/ftp/python/$(PVER5)/$(SOURCE2)
+ wget $(PYTHON_UPSTREAM)/$(PVER5)/$(SOURCE2) || \
+ wget $(PYTHON_UPSTREAM_MIRROR/$(SOURCE2)
$(TETJ):
bzr cat $(BZRTREES)/$(TETJ_MODULE)/tetj/tetj.py > tetj.py
More information about the lsb-messages
mailing list