diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-26 11:43:02 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-26 11:43:02 +0000 |
commit | d2bed82deff67152627e603bf4e053221ab324d3 (patch) | |
tree | 844b6573e5fe38c93158a654696cf93e2dbb17b4 | |
parent | 5e873d3c7e6e5e88015fba86d09c8247dff526da (diff) | |
download | buildroot-novena-d2bed82deff67152627e603bf4e053221ab324d3.tar.gz buildroot-novena-d2bed82deff67152627e603bf4e053221ab324d3.zip |
Makefile.autotools.in: fix BR2_PRIMARY_SITE check
Empty strings gets defined to "", so check for that instead of if
the variable is defined.
-rw-r--r-- | package/Makefile.autotools.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index e4397c337..76d734745 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -135,7 +135,8 @@ ifneq ($(filter source,$(MAKECMDGOALS)),) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) else $(call MESSAGE,"Downloading") -ifdef BR2_PRIMARY_SITE +ifneq ($(strip $(subst ",,$(BR2_PRIMARY_SITE))),) +#")) -$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $(BR2_PRIMARY_SITE)/$($(PKG)_SOURCE) endif $(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) |