Avoid duplicate downloading, when rebuilding failed package like libgtk2

This commit is contained in:
Ulf Samuelsson 2008-07-06 06:23:21 +00:00
parent 81164a3c79
commit 5ac33b59aa
1 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,7 @@ TAR ?= tar
$(BUILD_DIR)/%/.stamp_downloaded:
# support make source-check/external-deps
ifeq ($(MAKELEVEL),1)
$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
-$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
$(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
else
$(call MESSAGE,"Downloading")
@ -395,3 +395,5 @@ endif
endef
# :mode=makefile: