Subject: Re: make fetch should complain when distfile's size is 0
To: Tomasz Luchowski <zuntum@netbsd.org>
From: Antti Kantee <pooka@iki.fi>
List: tech-pkg
Date: 04/17/2001 18:18:10
Try FAILOVER_FETCH, that should work fine in most cases.
On Tue Apr 17 2001 at 00:46:23 +0200, Tomasz Luchowski wrote:
> Sometimes when I do make fetch, I can't fetch the file:
>
> zuntum@zunpc:/usr/pkgsrc/games/koth# make fetch
> ===> Validating dependencies for koth-0.7.6
> => koth-0.7.6.tar.gz doesn't seem to exist on this system.
> => Attempting to fetch koth-0.7.6.tar.gz from http://www-unix.oit.umass.edu/~tetron/koth/.
> Requesting http://www-unix.oit.umass.edu/~tetron/koth/koth-0.7.6.tar.gz
> 0% | | 0 0.00 KB/s --:-- ETA^C
> HTTP fetch aborted.
>
> Nothing was fetched (distfile's size is 0):
>
> zuntum@zunpc:/usr/pkgsrc/games/koth# ls -l /usr/pkgsrc/distfiles/koth-0.7.6.tar.gz
> -rwxr-xr-x 1 root wheel 0 Apr 17 01:37 /usr/pkgsrc/distfiles/koth-0.7.6.tar.gz*
>
> But "make fetch" is satisfied with the distfile and doesn't try to fetch it again:
>
> zuntum@zunpc:/usr/pkgsrc/games/koth# make fetch
> ===> Validating dependencies for koth-0.7.6
> zuntum@zunpc:/usr/pkgsrc/games/koth#
>
> It would be nice if we could check if distfile's size == 0 && complain.
> Just a wish :)
>
> --
> /* [zuntum] zuntum@netbsd.org , [WWW] http://zuntum.net */
--
Antti Kantee <pooka@iki.fi> v Of course he runs NetBSD
http://www.iki.fi/pooka/ i http://www.NetBSD.org/