Skip to content

Commit

Permalink
add tertiary fallback for unavailable package files
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytheodore committed Sep 16, 2012
1 parent 2d8a490 commit 936a7f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -4,6 +4,7 @@
JOBS := 1
TARGET := i686-pc-mingw32
SOURCEFORGE_MIRROR := freefr.dl.sourceforge.net
PKG_MIRROR := s3.amazonaws.com/mxe-pkg

PWD := $(shell pwd)
SHELL := bash
Expand Down Expand Up @@ -64,8 +65,9 @@ CHECK_PKG_ARCHIVE = \
DOWNLOAD_PKG_ARCHIVE = \
mkdir -p '$(PKG_DIR)' && \
$(if $($(1)_URL_2), \
( $(WGET) -T 30 -t 3 -O- '$($(1)_URL)' || $(WGET) -O- '$($(1)_URL_2)' ), \
$(WGET) -O- '$($(1)_URL)') \
( $(WGET) -T 30 -t 3 -O- '$($(1)_URL)' || $(WGET) -O- '$($(1)_URL_2)' || \
$(WGET) -O- '$(PKG_MIRROR)/$($(1)_FILE)'), \
$(WGET) -O- '$($(1)_URL)' || $(WGET) -O- '$(PKG_MIRROR)/$($(1)_FILE)') \
$(if $($(1)_FIX_GZIP), \
| gzip -d | gzip -9n, \
) \
Expand Down

0 comments on commit 936a7f7

Please sign in to comment.