summaryrefslogtreecommitdiff
path: root/Makefile.fetch
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-05-11 15:30:35 +0200
committerDavid Tardon <dtardon@redhat.com>2014-05-11 15:30:35 +0200
commit717ca9ca1097b528bfff166ab9c5363f29a70ea4 (patch)
tree091a722183bcbbd84789ee5d2b0c1f6074a9358e /Makefile.fetch
parent8c35902cc66794e0eec5899413b24b98d25cbc5d (diff)
check for empty tarball var.
Change-Id: I62a75f75594437a55b12b56617517b4db50ae9c2
Diffstat (limited to 'Makefile.fetch')
-rw-r--r--Makefile.fetch1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.fetch b/Makefile.fetch
index cdac3ae76b1d..46bbc3624723 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -53,6 +53,7 @@ endef
# fetch_Download_item url variable-name
define fetch_Download_item
+$(if $(strip $($(2))),,$(error fetch__Download_item: $(2) is empty))
$(if $(filter undefined,$(origin $(subst _TARBALL,_MD5SUM,$(subst _PACK,_MD5SUM,$(2))))),\
$(if $(call fetch_Download__is_checksum,$(firstword $(subst -, ,$($(2))))),\
$(call fetch__Download_item,$1,$($2),$(firstword $(subst -, ,$($(2))))),\