pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/fetch Fix FAILOVER_FETCH usage to actually match do...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7389ecde6d24
branches:  trunk
changeset: 514895:7389ecde6d24
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jun 20 14:50:27 2006 +0000

description:
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:

 mk/fetch/fetch.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 342bde2c94c7 -r 7389ecde6d24 mk/fetch/fetch.mk
--- a/mk/fetch/fetch.mk Tue Jun 20 14:41:16 2006 +0000
+++ b/mk/fetch/fetch.mk Tue Jun 20 14:50:27 2006 +0000
@@ -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 @@
                                ${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};\



Home | Main Index | Thread Index | Old Index