path: root/scripts
diff options
authorYann E. MORIN" <>2009-08-28 09:57:29 (GMT)
committerYann E. MORIN" <>2009-08-28 09:57:29 (GMT)
commit922486d2b1007bec06f9ac715f7ca01ef9e09e3a (patch)
tree950ff1e5a74df2457b4b1138e230eb4e343f2a4e /scripts
parentbc82244af1d3795bc67f3368225f01f96adf1a22 (diff)
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.
Diffstat (limited to 'scripts')
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/debug/ b/scripts/build/debug/
index 29bdec6..225d00c 100644
--- a/scripts/build/debug/
+++ b/scripts/build/debug/
@@ -1,8 +1,11 @@
# Build script for D.U.M.A.
do_debug_duma_get() {
- CT_GetFile "duma_${CT_DUMA_VERSION}"
- # 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
+ # Downloading from sourceforge may leave garbage, cleanup
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*