Skip to content

Commit ae402fe

Browse files
committed
update travis
1 parent 3385145 commit ae402fe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.travis.install.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
LAZ_TMP_DIR=os.environ.get('LAZ_TMP_DIR') or 'lazarus_tmp'
1313
LAZ_REL_DEF=os.environ.get('LAZ_REL_DEF') or {'linux':'amd64', 'qemu-arm':'amd64', 'qemu-arm-static':'amd64', 'osx':'i386', 'wine':'32'}
14-
LAZ_BIN_SRC=os.environ.get('LAZ_BIN_SRC') or 'http://mirrors.iwi.me/lazarus/releases/%(target)s/Lazarus%%20%(version)s'
14+
LAZ_BIN_SRC=os.environ.get('LAZ_BIN_SRC') or 'https://sourceforge.net/projects/lazarus/files/%(target)s/Lazarus%%20%(version)s/'
1515
LAZ_BIN_TGT=os.environ.get('LAZ_BIN_TGT') or {
1616
'linux': 'Lazarus%%20Linux%%20%(release)s%%20DEB',
1717
'qemu-arm': 'Lazarus%%20Linux%%20%(release)s%%20DEB',
@@ -58,7 +58,16 @@ def install_lazarus_version(ver,rel,env):
5858
osn = env or OS_NAME
5959
tgt = LAZ_BIN_TGT[osn] % {'release': rel or LAZ_REL_DEF[osn]}
6060
src = LAZ_BIN_SRC % {'target': tgt, 'version': ver}
61-
if os.system('wget -r -l1 -T 30 -np -nd -nc -A .deb,.dmg,.exe %s -P %s' % (src, LAZ_TMP_DIR)) != 0:
61+
if os.system('echo wget -w 1 -np -m -A download %s' % (src)) != 0:
62+
return False
63+
64+
if os.system('wget -w 1 -np -m -A download %s' % (src)) != 0:
65+
return False
66+
67+
if os.system('grep -Rh refresh sourceforge.net/ | grep -o "https://[^\\?]*" > urllist') != 0:
68+
return False
69+
70+
if os.system('while read url; do wget --content-disposition "${url}" -A .deb,.dmg,.exe -P %s; done < urllist' % (LAZ_TMP_DIR)) != 0:
6271
return False
6372

6473
if osn == 'wine':

0 commit comments

Comments
 (0)