Changeset 12034


Ignore:
Timestamp:
2008-07-31T04:43:33+02:00 (10 years ago)
Author:
nbd
Message:

allow packages to forcibly disable the svn/git mirror downloading attempt by setting PKG_SOURCE_MIRROR:=0 (#3815)

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/download.mk

    r11785 r12034  
    4242 
    4343define wrap_mirror 
    44         @$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x" || ( $(1) ) 
     44        $(if $(MIRROR),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x" || ( $(1) ),$(1)) 
    4545endef 
    4646 
     
    102102  MD5SUM:= 
    103103  SUBDIR:= 
     104  MIRROR:=1 
    104105  VERSION:= 
    105106endef 
  • trunk/include/package.mk

    r11414 r12034  
    5050  SUBDIR:=$(PKG_SOURCE_SUBDIR) 
    5151  PROTO:=$(PKG_SOURCE_PROTO) 
     52  $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) 
    5253  VERSION:=$(PKG_SOURCE_VERSION) 
    5354  MD5SUM:=$(PKG_MD5SUM) 
Note: See TracChangeset for help on using the changeset viewer.