diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-12-12 11:37:23 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-13 12:16:25 +0100 |
commit | dbbfd4111891c831a9df6b7a0df600b3f76c52be (patch) | |
tree | 123934d3490f086f3aaa640cba7bfc86e9d89406 | |
parent | d6ef917bdb8890c3392dae2a9ef3dce47118c798 (diff) | |
download | upstream-dbbfd4111891c831a9df6b7a0df600b3f76c52be.tar.gz upstream-dbbfd4111891c831a9df6b7a0df600b3f76c52be.tar.bz2 upstream-dbbfd4111891c831a9df6b7a0df600b3f76c52be.zip |
download.mk: use $(error) instead of a regular shell error
Useful for further rework
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | include/download.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/download.mk b/include/download.mk index 9fbc3fb656..b234b1bd0e 100644 --- a/include/download.mk +++ b/include/download.mk @@ -36,7 +36,7 @@ endef dl_pack/bz2=$(TAR) --owner=0 --group=0 --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -cjf $(1) $(2) dl_pack/gz=$(TAR) --owner=0 --group=0 --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | gzip -nc > $(1) dl_pack/xz=$(TAR) --owner=0 --group=0 --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | xz -zc -7e > $(1) -dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false +dl_pack/unknown=$(error ERROR: Unknown pack format for file $(1)) define dl_pack $(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown)) endef |