pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk When FAILOVER_FETCH is set, only use the first dige...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c09a5e89053
branches:  trunk
changeset: 490017:0c09a5e89053
user:      agc <agc%pkgsrc.org@localhost>
date:      Wed Mar 02 11:11:36 2005 +0000

description:
When FAILOVER_FETCH is set, only use the first digest algorithm found
for a dist file or patch, and let the "checksum" target do the full
digest integrity checks.  Should fix a problem reported by John Klos
on tech-pkg, which I was a bit dim in analysing.

diffstat:

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

diffs (18 lines):

diff -r 2ec960ab1f42 -r 0c09a5e89053 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Wed Mar 02 10:31:23 2005 +0000
+++ b/mk/bsd.pkg.mk     Wed Mar 02 11:11:36 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1596 2005/02/27 22:10:25 veego Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1597 2005/03/02 11:11:36 agc Exp $
 #
 # This file is in the public domain.
 #
@@ -1277,7 +1277,7 @@
                        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 \
-                                       alg=`${AWK} 'NF == 4 && $$2 == "('$$file')" && $$3 == "=" {print $$1;}' ${DISTINFO_FILE}`; \
+                                       alg=`${AWK} 'NF == 4 && $$2 == "('$$file')" && $$3 == "=" {print $$1; exit}' ${DISTINFO_FILE}`; \
                                        if [ -z "$$alg" ]; then         \
                                                alg=${PATCH_DIGEST_ALGORITHM};\
                                        fi;                             \



Home | Main Index | Thread Index | Old Index