pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk _RESUME_TRANSFER: only try to get the value of the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2c625ba9267
branches:  trunk
changeset: 498582:e2c625ba9267
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Aug 26 14:47:30 2005 +0000

description:
_RESUME_TRANSFER: only try to get the value of the temp file when it's
available.

diffstat:

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

diffs (28 lines):

diff -r 13c874c90728 -r e2c625ba9267 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Fri Aug 26 13:59:21 2005 +0000
+++ b/mk/bsd.pkg.mk     Fri Aug 26 14:47:30 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1717 2005/08/18 19:24:15 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1718 2005/08/26 14:47:30 xtraeme Exp $
 #
 # This file is in the public domain.
 #
@@ -1178,7 +1178,6 @@
                        ${RM} $$tfile;                          \
                fi;                                             \
                need_fetch=no;                                  \
-               break;                                          \
        elif [ "$$osize" -lt "$$tsize" -a ! -f "$$tfile" ]; then        \
                ${CP} $$ofile $$tfile;                          \
                dsize=`${WC} -c < $$tfile`;                     \
@@ -1187,7 +1186,9 @@
                dsize=`${WC} -c < $$tfile`;                     \
                need_fetch=yes;                                 \
        else                                                    \
-               dsize=`${WC} -c < $$tfile`;                     \
+               if [ -f "$$tfile" ]; then                       \
+                       dsize=`${WC} -c < $$tfile`;             \
+               fi;                                             \
                need_fetch=yes;                                 \
        fi;                                                     \
        if [ "$$need_fetch" = "no" ]; then                      \



Home | Main Index | Thread Index | Old Index