# HG changeset patch # User "Yann E. MORIN" # Date 1251453449 -7200 # Node ID 8c45efc97e7f81bf9cb6910aabc9267732b4cd71 # Parent ff95f62f84a1f5f659c6fedee292001f9c7b9def 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 for pointing out the issue. diff -r ff95f62f84a1 -r 8c45efc97e7f scripts/build/debug/200-duma.sh --- a/scripts/build/debug/200-duma.sh Fri Aug 28 11:34:49 2009 +0200 +++ b/scripts/build/debug/200-duma.sh Fri Aug 28 11:57:29 2009 +0200 @@ -1,8 +1,11 @@ # Build script for D.U.M.A. do_debug_duma_get() { - CT_GetFile "duma_${CT_DUMA_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/duma/ - # Downloading from sourceforge leaves garbage, cleanup + # Downloading an non-existing file from sourceforge will give you an + # 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"* }