diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-19 14:22:47 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-19 14:22:47 +0000 |
commit | cbcfa6d0b5fb11edf0375377b215c8b034e4b79a (patch) | |
tree | ac0b867db08b88fbc257715f565148e50cbb3489 /mk | |
parent | 2936f01adffc0c39ea16eb66a89a81a1ce6a0ec2 (diff) | |
download | pkgsrc-cbcfa6d0b5fb11edf0375377b215c8b034e4b79a.tar.gz |
Restore original quoting from old fetch.mk for _ORDERED_SITES to resolve
the problem with MASTER_SORT*.
XXX The whole MASTER_SORT* thing should just be a standalone script.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/fetch/fetch.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk index 8d6d76dc1c7..6996bdab55c 100644 --- a/mk/fetch/fetch.mk +++ b/mk/fetch/fetch.mk @@ -1,4 +1,4 @@ -# $NetBSD: fetch.mk,v 1.14 2006/07/19 14:03:59 jlam Exp $ +# $NetBSD: fetch.mk,v 1.15 2006/07/19 14:22:47 jlam Exp $ _MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} @@ -46,7 +46,7 @@ _MASTER_SORT_AWK+= /${srt:C/\//\\\//g}/ { good["${srt:S/\\/\\\\/g}"] = good["${s _MASTER_SORT_AWK+= { rest = rest " " $$0; } END { n=split(gl, gla); for(i=1;i<=n;i++) { print good[gla[i]]; } print rest; } _SORT_SITES_CMD= ${ECHO} $$unsorted_sites | ${AWK} '${_MASTER_SORT_AWK}' -_ORDERED_SITES= "${_MASTER_SITE_OVERRIDE} `${_SORT_SITES_CMD:S/\\/\\\\/g:C/"/\"/g}`" +_ORDERED_SITES= ${_MASTER_SITE_OVERRIDE} `${_SORT_SITES_CMD:S/\\/\\\\/g:C/"/\"/g}` .else _ORDERED_SITES= ${_MASTER_SITE_OVERRIDE} $$unsorted_sites .endif @@ -219,6 +219,7 @@ _FETCH_CMD= ${SETENV} CHECKSUM=${_CHECKSUM_CMD:Q} \ WC=${TOOLS_WC:Q} \ ${SH} ${PKGSRCDIR}/mk/fetch/fetch +_FETCH_ARGS+= -v _FETCH_ARGS+= ${FAILOVER_FETCH:D-c} .if exists(${DISTINFO_FILE}) _FETCH_ARGS+= -f ${DISTINFO_FILE:Q} @@ -248,8 +249,9 @@ do-fetch-file: .USE fi ${_PKG_SILENT}${_PKG_DEBUG}set -e; \ unsorted_sites="${SITES.${.TARGET:T:S/=/--/}} ${_MASTER_SITE_BACKUP}"; \ + sites="${_ORDERED_SITES}"; \ cd ${.TARGET:H:S/\/${DIST_SUBDIR}$//} && \ - ${_FETCH_CMD} ${_FETCH_ARGS} ${.TARGET:T} ${_ORDERED_SITES} + ${_FETCH_CMD} ${_FETCH_ARGS} ${.TARGET:T} $$sites ${_PKG_SILENT}${_PKG_DEBUG} \ if ${TEST} ! -f ${.TARGET}; then \ ${ERROR_MSG} "Could not fetch the following file:"; \ |