瀏覽代碼

Makefile.autotools.in: fix BR2_PRIMARY_SITE check

Empty strings gets defined to "", so check for that instead of if
the variable is defined.
Peter Korsgaard 17 年之前
父節點
當前提交
d2bed82def
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      package/Makefile.autotools.in

+ 2 - 1
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)