On Sun, Jul 29, 2007 at 08:09:11PM +0200, Dick Hoogendijk wrote:
> "S h i v  " <shivakumar.gn at gmail.com> writes:
> > The actual intention of the mail here was to explain that incase a
> > corrupted tarball already exists under download_to directory, then
> > the subsequent operations of pkgtool will always fail even if the
> > URL is correct.
> YES, that *is* not what we want. Clearly a bug. Hope this will be
> resolved in a future release.

what if we do the wget into a temporary file, and if the wget
returncode is zero, move the temporary filename into the 
realy name of the downloaded file?
This would at least avoid handling files from unfinished downloads...

But I'm not sure, that wget in any different case returns exit-codes
we can use to detect, that the downloaded file is correct.

If you like, look at the perl-code doing the download.

Thomas

-- 

Reply via email to