about summary refs log tree commit diff
path: root/scripts/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build.py')
-rw-r--r--scripts/build.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/build.py b/scripts/build.py
index 71995ae9..5ec7a0d7 100644
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -87,12 +87,14 @@ os.chdir(root_dir)
 # download
 if flag_download:
 	print "*** downloading bam source package ***"
-	if not fetch_file("www.teewars.com", "/files/beta/bam.zip", "bam.zip"):
-		bail("couldn't find source package and couldn't download it")
+	if not fetch_file("www.teewars.com", "/files/bam.zip", "bam.zip"):
+		if not fetch_file("www.teewars.com", "/files/beta/bam.zip", "bam.zip"):
+			bail("couldn't find source package and couldn't download it")
 		
 	print "*** downloading teewars source package ***"
-	if not fetch_file("www.teewars.com", "/files/beta/%s" % src_package, src_package):
-		bail("couldn't find source package and couldn't download it")
+	if not fetch_file("www.teewars.com", "/files/%s" % src_package, src_package):
+		if not fetch_file("www.teewars.com", "/files/beta/%s" % src_package, src_package):
+			bail("couldn't find source package and couldn't download it")
 
 # unpack
 print "*** unpacking source ***"