changeset 1437:181c89101ae0

changed download mechanism to allow for simple integration of post-download filters, at the cost of not being able to contine interrupted downloads
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 28 Nov 2010 13:11:32 +0100
parents 5e1db3421f8e
children 698e4de6d9a6
files Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Nov 27 00:33:03 2010 +0100
+++ b/Makefile	Sun Nov 28 13:11:32 2010 +0100
@@ -60,9 +60,9 @@
 DOWNLOAD_PKG_ARCHIVE = \
     mkdir -p '$(PKG_DIR)' && \
     $(if $($(1)_URL_2), \
-        wget -T 30 -t 3 -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)' \
-        || wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL_2)', \
-        wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)')
+        ( wget -T 30 -O - '$($(1)_URL)' || wget -O - '$($(1)_URL_2)' ), \
+        wget -O - '$($(1)_URL)') \
+    > '$(PKG_DIR)/$($(1)_FILE)'
 
 SOURCEFORGE_FILES = \
     wget -q -O- '$(1)' | \