mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-03 19:44:09 +00:00
duma: fix downloading by forcing extension to .tar.gz
Downoading a non-existing file from sourceforge gives you a "200 OK" and an index.html. As we try to retrieve a .tar.bz2 first, and duma is bundled in a .tar.gz, we won't get appropriate content, so just force the extension to avoid the problem. Thanks to Ingmar Schraub <is@eseco.de> for pointing out the issue.
This commit is contained in:
parent
bc82244af1
commit
922486d2b1
@ -1,8 +1,11 @@
|
|||||||
# Build script for D.U.M.A.
|
# Build script for D.U.M.A.
|
||||||
|
|
||||||
do_debug_duma_get() {
|
do_debug_duma_get() {
|
||||||
CT_GetFile "duma_${CT_DUMA_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/duma/
|
# Downloading an non-existing file from sourceforge will give you an
|
||||||
# Downloading from sourceforge leaves garbage, cleanup
|
# HTML file containing an error message, instead of returning a 404.
|
||||||
|
# Sigh...
|
||||||
|
CT_GetFile "duma_${CT_DUMA_VERSION}" .tar.gz http://mesh.dl.sourceforge.net/sourceforge/duma/
|
||||||
|
# Downloading from sourceforge may leave garbage, cleanup
|
||||||
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
|
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user