From: Ulf Samuelsson Date: Sun, 6 Jul 2008 06:23:21 +0000 (-0000) Subject: Avoid duplicate downloading, when rebuilding failed package like libgtk2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ac33b59aa41ef5fe4c07ae7192828c1c61cc85d;p=buildroot.git Avoid duplicate downloading, when rebuilding failed package like libgtk2 --- diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index 16fc371927..574ef1cf56 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -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: + +