Subject: Re: pkg building and broken FTP sessions
To: None <tech-pkg@NetBSD.org>
From: John Klos <firstname.lastname@example.org>
Date: 07/05/2004 03:14:18
>> 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.
In the context of fetching files for a pkgsrc build, it would be a simple
matter to see if ftp returns an error on exit and have an option about
what to do in case of that error (like delete the distfile, if it exists).