diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/fetch.mk | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk index b6637ba0e..9a4eb1d8c 100644 --- a/mk/fetch.mk +++ b/mk/fetch.mk @@ -62,17 +62,7 @@ $(1): mkdir -p "$$$${fullname%%/$$$$filename}"; \ cd "$$$${fullname%%/$$$$filename}"; \ for url in "${PKG_SITES}"; do case $$$$url in \ - http://*|https://*|ftp://*) \ - for site in $${PKG_SITES} $${MASTER_SITE_BACKUP}; do \ - : echo "$${FETCH_CMD} $$$$site$$$$filename"; \ - rm -f "$$$$filename"; \ - if $${FETCH_CMD} $$$$site$$$$filename; then \ - : check the size here; \ - [[ ! -e $$$$filename ]] || exit 0; \ - fi; \ - done; \ - ;; \ - git://*) \ + git://*|*.git) \ rm -rf $${PKG_NAME}-$${PKG_VERSION}; \ git clone $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \ if [ $$$$(echo $${PKG_VERSION}|wc -c) -eq 41 ]; then \ @@ -89,6 +79,16 @@ $(1): : check the size here; \ [[ ! -e $$$$filename ]] || exit 0; \ ;; \ + http://*|https://*|ftp://*) \ + for site in $${PKG_SITES} $${MASTER_SITE_BACKUP}; do \ + : echo "$${FETCH_CMD} $$$$site$$$$filename"; \ + rm -f "$$$$filename"; \ + if $${FETCH_CMD} $$$$site$$$$filename; then \ + : check the size here; \ + [[ ! -e $$$$filename ]] || exit 0; \ + fi; \ + done; \ + ;; \ *) \ echo url schema not known; \ false ;; \ |