Subject: Re: pkg building and broken FTP sessions
To: John Klos <john@ziaspace.com>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 07/05/2004 17:15:49
--Y5wfsVCgeKAcINk2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Jul 05, 2004 at 03:14:18AM -0400, John Klos wrote:
> >>So, if ftp doesn't create or if it properly destroys the file after the
> >>error, then pkgsrc would move along to the next ftp / http site.
> >
> >The same problem occurs when the ftp transfer is interrupted with only
> >a partial file transferred. Maybe there should be a command line option
> >to ftp to "delete any partially downloaded files" or something.
>=20
> In the context of fetching files for a pkgsrc build, it would be a simple=
=20
> matter to see if ftp returns an error on exit and have an option about=20
> what to do in case of that error (like delete the distfile, if it exists).
I just use:
FAILOVER_FETCH=3Dyes
and if it can't grab a distfile that matches the checksum, the
distfile obviously changed ;-)
g.
--Y5wfsVCgeKAcINk2
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFA6QAlluYOb9yiFXoRAtHuAJ0aDTCUQga5n91239SGymqI5G8PTQCcCX1H
zsXzshWsrg1XCQ2pArw6ykE=
=RUbs
-----END PGP SIGNATURE-----
--Y5wfsVCgeKAcINk2--