diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-08-27 09:04:33 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-08-27 09:04:33 (GMT) |
commit | cd9425517b11c7667b3e710df56ade30e65adb4e (patch) | |
tree | 661a3485e5e0c847d79467b213dc922b04757990 | |
parent | 368150f334f3618b64bd1221eaf777dd1e1068c5 (diff) | |
download | mxe-cd9425517b11c7667b3e710df56ade30e65adb4e.zip mxe-cd9425517b11c7667b3e710df56ade30e65adb4e.tar.gz mxe-cd9425517b11c7667b3e710df56ade30e65adb4e.tar.bz2 |
Makefile: add explicit failed download message
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -82,7 +82,8 @@ DOWNLOAD_PKG_ARCHIVE = \ $(if $($(1)_FIX_GZIP), \ | gzip -d | gzip -9n, \ ) \ - > '$(PKG_DIR)/$($(1)_FILE)' || rm -f '$(PKG_DIR)/$($(1)_FILE)' + > '$(PKG_DIR)/$($(1)_FILE)' || \ + ( echo 'Download failed!'; rm -f '$(PKG_DIR)/$($(1)_FILE)'; exit 1; ) ifeq ($(IGNORE_SETTINGS),yes) $(info [ignore settings.mk]) @@ -202,7 +203,7 @@ $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \ ln -sf '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \ if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ echo; \ - echo 'Wrong checksum of package $(1)!'; \ + echo 'Download failed or wrong checksum of package $(1)!'; \ echo '------------------------------------------------------------'; \ tail -n 10 '$(LOG_DIR)/$(1)-download' | $(SED) -n '/./p'; \ echo '------------------------------------------------------------'; \ |