duma: fix downloading by forcing extension to .tar.gz
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Aug 28 11:57:29 2009 +0200 (2009-08-28)
changeset 14898c45efc97e7f
parent 1488 ff95f62f84a1
child 1490 bb70615043cb
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.
scripts/build/debug/200-duma.sh
     1.1 --- a/scripts/build/debug/200-duma.sh	Fri Aug 28 11:34:49 2009 +0200
     1.2 +++ b/scripts/build/debug/200-duma.sh	Fri Aug 28 11:57:29 2009 +0200
     1.3 @@ -1,8 +1,11 @@
     1.4  # Build script for D.U.M.A.
     1.5  
     1.6  do_debug_duma_get() {
     1.7 -    CT_GetFile "duma_${CT_DUMA_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/duma/
     1.8 -    # Downloading from sourceforge leaves garbage, cleanup
     1.9 +    # Downloading an non-existing file from sourceforge will give you an
    1.10 +    # HTML file containing an error message, instead of returning a 404.
    1.11 +    # Sigh...
    1.12 +    CT_GetFile "duma_${CT_DUMA_VERSION}" .tar.gz http://mesh.dl.sourceforge.net/sourceforge/duma/
    1.13 +    # Downloading from sourceforge may leave garbage, cleanup
    1.14      CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
    1.15  }
    1.16