scripts: use generic urls for sourceforge

For expat, duma, and strace, use the generic url and 302 to the mirror
instead of trying to download a file from a downed mirror and
failing.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <b69ebeb72fef93c04c84.1345364051@flambe.is-a-geek.org>
(transplanted from cb75966698d7e44bc76445d7b249eba89bdf1d8a)
This commit is contained in:
Bryan Hundven 2012-08-19 01:09:40 -07:00
parent d202a38e0b
commit b658fdc2cf
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
do_debug_duma_get() { do_debug_duma_get() {
local dl_base local dl_base
dl_base="http://dfn.dl.sourceforge.net/project/duma/duma" dl_base="http://downloads.sourceforge.net/project/duma/duma"
dl_base+="/${CT_DUMA_VERSION//_/.}" dl_base+="/${CT_DUMA_VERSION//_/.}"
# Downloading an non-existing file from sourceforge will give you an # Downloading an non-existing file from sourceforge will give you an

View File

@ -62,7 +62,7 @@ do_debug_gdb_get() {
if [ "${do_expat}" = "y" ]; then if [ "${do_expat}" = "y" ]; then
CT_GetFile "expat-${CT_DEBUG_GDB_EXPAT_VERSION}" .tar.gz \ CT_GetFile "expat-${CT_DEBUG_GDB_EXPAT_VERSION}" .tar.gz \
http://kent.dl.sourceforge.net/project/expat/expat/${CT_DEBUG_GDB_EXPAT_VERSION} http://downloads.sourceforge.net/project/expat/expat/${CT_DEBUG_GDB_EXPAT_VERSION}
fi fi
} }

View File

@ -1,7 +1,7 @@
# Build script for strace # Build script for strace
do_debug_strace_get() { do_debug_strace_get() {
local base_url="http://kent.dl.sourceforge.net/project/strace/strace" local base_url="http://downloads.sourceforge.net/project/strace/strace"
CT_GetFile "strace-${CT_STRACE_VERSION}" "${base_url}/${CT_STRACE_VERSION}" CT_GetFile "strace-${CT_STRACE_VERSION}" "${base_url}/${CT_STRACE_VERSION}"
# Downloading from sourceforge leaves garbage, cleanup # Downloading from sourceforge leaves garbage, cleanup
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"* CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*