[EMAIL PROTECTED] wrote:
>> I will make those changes. Also I don't think we should clean up the 
>> files as user might resume the download after cancellation, so all the 
>> files will be in the download folder.
>>     
>
> Downloaded files end up in two different places, depending upon how
> successful the download was.  Once a file has been successfully
> downloaded and verified, we move it to the cache.  However, prior to
> that, it lives in a separate download directory.  What I was really
> asking is do you expect to have any incomplete files on the disk when a
> CancelationException is thrown.  Does the code that catches this
> exception call image.cleanup_downloads() to remove aborted incomplete
> downloads?
>
>   
Take a look at api.py, lines 399-406, I think that's the relevant code. 
It looks to me like anytime we get an exception of any time while 
downloading/prexecuting, we'll do img.cleanup_downloads. Is that the 
right thing to do?

Brock

> -j
>
>   

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to