Subject: make fetch should complain when distfile's size is 0
To: None <tech-pkg@netbsd.org>
From: Tomasz Luchowski <zuntum@netbsd.org>
List: tech-pkg
Date: 04/17/2001 00:46:23
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 */