From: Peter Korsgaard Date: Thu, 26 Jun 2008 11:43:02 +0000 (-0000) Subject: Makefile.autotools.in: fix BR2_PRIMARY_SITE check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2bed82deff67152627e603bf4e053221ab324d3;p=buildroot.git Makefile.autotools.in: fix BR2_PRIMARY_SITE check Empty strings gets defined to "", so check for that instead of if the variable is defined. --- diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index e4397c337f..76d734745b 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)