From owner-freebsd-ports Wed Mar 27 6:24:36 2002 Delivered-To: freebsd-ports@freebsd.org Received: from straylight.ringlet.net (support.nanolink.com [217.75.134.33]) by hub.freebsd.org (Postfix) with SMTP id 37C0D37B416 for ; Wed, 27 Mar 2002 06:24:30 -0800 (PST) Received: (qmail 24966 invoked by uid 1000); 27 Mar 2002 14:24:36 -0000 Date: Wed, 27 Mar 2002 16:24:36 +0200 From: Peter Pentchev To: Maxim Sobolev Cc: Alan Eldridge , freebsd-ports@FreeBSD.org Subject: Re: Make Fetch resume (Is is possible to do...) Message-ID: <20020327162436.B1189@straylight.oblivion.bg> Mail-Followup-To: Maxim Sobolev , Alan Eldridge , freebsd-ports@FreeBSD.org References: <20020327023215.GA60864@wwweasel.geeksrus.net> <1017200712.260.12.camel@notebook> <20020327055042.GA63306@wwweasel.geeksrus.net> <1017211272.40837.23.camel@notebook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1017211272.40837.23.camel@notebook>; from sobomax@FreeBSD.org on Wed, Mar 27, 2002 at 08:49:49AM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2002 at 08:49:49AM +0200, Maxim Sobolev wrote: > On Wed, 2002-03-27 at 07:50, Alan Eldridge wrote: > > On Wed, Mar 27, 2002 at 05:47:48AM +0200, Maxim Sobolev wrote: > > >Well, I think that the best way out is to introduce some new target, s= ay > > >fetch-resume, which will compare checksums of all files and if some of > > >them don't match it will try to resume download. This will ensure that > > >the luser knows what he is doing. Proposed `RESUME_FETCH' knob doesn't > > >look as a very good idea for me, because naive users will just define = it > > >in make.conf and then have a problems each time when checksum changes > > >while the name of the distfile remains the same. > >=20 > > To tie things together a bit, would you see this fitting in the > > mainstream bsd.port.mk, or in the proposed bsd.port.utils.mk you > > wrote of earlier (in another thread)? >=20 > The latter, I think. The tricky part is to avoid code duplication, so > that hypothetical fetch-resume uses existing fetch target to do actual > fetching. How about naming it something like 'checksum-refetch', since it would actually have to duplicate code from the 'checksum' target, too? (and yes, I know this is all idle speculation until somebody actually sits down and tries to write the thing; only then will it be seen just how much code and from which target it will be able to use :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence every third, but it still comprehensible. --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjyh1iQACgkQ7Ri2jRYZRVOzUACgoR54/Q9cCBlPNw0q+n+dNoDM 2UsAnjFIPlDL6uQJ7DXaMZwAYk93et6G =Np1j -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message