Commit d2bed82d authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

Makefile.autotools.in: fix BR2_PRIMARY_SITE check

Empty strings gets defined to "", so check for that instead of if
the variable is defined.
parent 5e873d3c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)