diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-20 14:50:27 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-20 14:50:27 +0000 |
commit | fce460b04b88d01c641f7c6ee893eda2c3228eaf (patch) | |
tree | 55d9d9d2cc7fde6c3ed58e870dd59aafc659dfc0 /mk/fetch | |
parent | 9e77defa3a45f919ac456ba686320d09df4578ee (diff) | |
download | pkgsrc-fce460b04b88d01c641f7c6ee893eda2c3228eaf.tar.gz |
Fix FAILOVER_FETCH usage to actually match documentation -- it's
supposed to be just defined/undefined, but was previously being used
as non-empty/emtpy.
Diffstat (limited to 'mk/fetch')
-rw-r--r-- | mk/fetch/fetch.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk index 1c850e85263..d2e00016dc4 100644 --- a/mk/fetch/fetch.mk +++ b/mk/fetch/fetch.mk @@ -1,4 +1,4 @@ -# $NetBSD: fetch.mk,v 1.2 2006/06/06 03:36:00 jlam Exp $ +# $NetBSD: fetch.mk,v 1.3 2006/06/20 14:50:27 jlam Exp $ ###################################################################### ### fetch (PUBLIC) @@ -148,7 +148,7 @@ _FETCH_FILE= \ ${AWK} 'NF == 5 && $$1 == "Size" && $$2 == "('$$bfile')" { printf("=> [%s %s]\n", $$4, $$5) }' ${DISTINFO_FILE}; \ fi; \ if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${bfile} ${FETCH_AFTER_ARGS}; then \ - if [ -n "${FAILOVER_FETCH}" -a -f ${DISTINFO_FILE} -a -f ${_DISTDIR}/$$bfile ]; then \ + if [ -n ${FAILOVER_FETCH:Dyes}"" -a -f ${DISTINFO_FILE} -a -f ${_DISTDIR}/$$bfile ]; then \ alg=`${AWK} 'NF == 4 && $$2 == "('$$file')" && $$3 == "=" {print $$1; exit}' ${DISTINFO_FILE}`; \ if [ -z "$$alg" ]; then \ alg=${PATCH_DIGEST_ALGORITHM};\ |