diff options
author | xtraeme <xtraeme> | 2005-08-26 14:47:30 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2005-08-26 14:47:30 +0000 |
commit | d8c0769adcdd356d05cda56bf38ca0727e578c3a (patch) | |
tree | 17ab123c53009ba57d5ed313bf21b92efe60e161 /mk | |
parent | 9973cf2f2575a666fce56b6c360ebc5efb2b5cdc (diff) | |
download | pkgsrc-d8c0769adcdd356d05cda56bf38ca0727e578c3a.tar.gz |
_RESUME_TRANSFER: only try to get the value of the temp file when it's
available.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index f61c6da3c32..dbc1758b73d 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -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 @@ _RESUME_TRANSFER= \ ${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 @@ _RESUME_TRANSFER= \ 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 \ |