On Tuesday 13 October 2009 10:59:43 Michael Andres wrote:
On Monday 12 October 2009 20:41:01 Dave Plater wrote:
On 10/12/2009 03:20 PM, Michael Andres wrote:
On Monday 12 October 2009 09:10:54 Dave Plater wrote:
When aria2c is restarted, if the partially downloaded file is still in the temp download directory it will resume that file, that's why I am trying to prevent its deletion before the download retry. My idea is to retry aria2c before it gets up to a higher level with a lower level retry counter as you seem to be suggesting below. I suppose I can look into MediaAria2c.cc and see if I can hook in there for now.
Yes. I'll have a look how we can get access ot the report callback, so we can replace the counter by asking the user whether to retry.
As zypper is already connected to MediaArias DownloadProgressReport, asking whether to retry an interrupted download seems to be quite easy. I checked in a new zypp/media/MediaAria2c.cc (0a19ae60): Prepare reporting of partial downloads so one could retry with --continue). If you set 'bool partialDownload' to true, the an interrupted download gets reported and you are a asked whether to retry. So you just have to detect the partial download and arrange the next try to use --continue. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org