changeset 2729:6c492e126140

cleanup after failed download
author Tony Theodore <tonyt@logyst.com>
date Sun, 16 Sep 2012 19:03:11 +1000
parents 4647b1a6c342
children 38054572b13f
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Sep 16 18:26:07 2012 +1000
+++ b/Makefile	Sun Sep 16 19:03:11 2012 +1000
@@ -71,7 +71,7 @@
     $(if $($(1)_FIX_GZIP), \
         | gzip -d | gzip -9n, \
         ) \
-    > '$(PKG_DIR)/$($(1)_FILE)'
+    > '$(PKG_DIR)/$($(1)_FILE)' || rm -f '$(PKG_DIR)/$($(1)_FILE)'
 
 ifeq ($(IGNORE_SETTINGS),yes)
     $(info [ignore settings.mk])