Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 15:55:58 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        Trevor Johnson <trevor@jpj.net>
Cc:        ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/archivers/9e distinfo ports/archivers/bzip distinfo ports/archivers/cabextract distinfo ports/archivers/dact distinfo ports/archivers/fastjar distinfo ports/archivers/gshar+gunsh
Message-ID:  <20040128155558.3d33bed4@it.buh.cameradicommercio.ro>
In-Reply-To: <20040128081934.U62139@blues.jpj.net>
References:  <200401272051.i0RKp7J6006306@repoman.freebsd.org> <53963718.1075241820@pouet.in.mat.cc> <1075238894.733.10.camel@gyros> <20040128085404.GE9290@voodoo.oberon.net> <20040128125646.GB20343@voodoo.oberon.net> <20040128081934.U62139@blues.jpj.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Jan 2004 08:24:13 -0500 (EST)
Trevor Johnson <trevor@jpj.net> wrote:

> Kirill Ponomarew wrote:
> 
> > *sigh* I'm thinking as before about /usr/ports/CHANGES...
> 
> How does this sound?
> 
> SIZE lines in distinfo files:  if you set USE_SIZE when you do "make
> makesum", the byte sizes of the distfiles will be listed in the distinfo
> file.  Then, if a distfile is replaced on its master site with one of a
> different size than that listed, "make fetch" will fail with a "size
> mismatch" error before downloading the file and the user will be asked to
> fetch the file by hand.

I think a separate make checksize target would be nice; it will allow
users to test if their local distfile has the same size with the one
listed in the distinfo and make fetch based on that. This could be
useful when using make fetch from scripts, as I do.

Of course, the make checksum will first test for the size, and only if
the downloaded file has the a good size will check the md5. On "bulk"
operation this saves resources.


-- 
IOnut
Unregistered ;) FreeBSD user



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040128155558.3d33bed4>