aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-04-04 15:44:02 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-04-04 19:26:44 -0400
commitbb717f43756cf2754b6ed6fc54d52b535ed25fb2 (patch)
tree7f97f7ea49f9a55ab1c4a25840560156b6bd6d68 /depends
parentfe740f14690f70fbb84287595049afc719a5bd3b (diff)
downloadbitcoin-bb717f43756cf2754b6ed6fc54d52b535ed25fb2.tar.xz
depends: fix "unexpected operator" error during "make download"
Diffstat (limited to 'depends')
-rw-r--r--depends/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/depends/Makefile b/depends/Makefile
index 7ae14524e1..3ddfc85a45 100644
--- a/depends/Makefile
+++ b/depends/Makefile
@@ -147,9 +147,9 @@ endef
define check_or_remove_sources
mkdir -p $($(package)_source_dir); cd $($(package)_source_dir); \
- $(build_SHA256SUM) -c $($(package)_fetched) >/dev/null 2>/dev/null || \
- ( if test -f $($(package)_all_sources); then echo "Checksum missing or mismatched for $(package) source. Forcing re-download."; fi; \
- rm -f $($(package)_all_sources) $($(1)_fetched))
+ test -f $($(package)_fetched) && ( $(build_SHA256SUM) -c $($(package)_fetched) >/dev/null 2>/dev/null || \
+ ( echo "Checksum missing or mismatched for $(package) source. Forcing re-download."; \
+ rm -f $($(package)_all_sources) $($(1)_fetched))) || true
endef
check-packages: