On Jan 29, 6:51pm, "Rajko M." wrote: } Subject: Re: [opensuse-factory] The frustration of updating
On Thursday 29 January 2009 08:43:26 am Patrick Shanahan wrote:
* Basil Chupin <blchupin@iinet.net.au> [01-29-09 03:21]:
smart on the other hand simply downloads whatever RPM/s are downloadable and if it/they are not downloadable smart skips it/them and continues with downloading the rest. You then restart smart to download the missed RPMs when, for example, you come back from shopping or wake up in the morning and see that the task hasn't been completed.
Another approach would be to continue on with the other packages and retry the errant operation after the others have completed their download. Perhaps a retry counter and only fail aftery all others have completed and/or failed > 2 times.
The response of package management should depend on type of error.
If server was responding and all of the sudden can't be found retry DNS resolution again.
If server is below common network speed try another one. This would require some application that will establish what is average network connection speed.
Here's some of my experiences with smart, and imo, is what zypp should be aspiring to: smart will download multiple threads. A couple from each repository, and however many repositories you're downloading from in parallel. This really speeds up the download process. I have had smart fail to download for various reasons: Failure to resolve repository host name. This happens to me even after many packages have been downloaded from the host. A restart of the download will usually fix that. Packages no longer available. Happens frequently to me. Rescan the repositories, rerun the solver, and download again. Most of the packages are already downloaded, and just a few dozen (or worst case, in the event of a 4000 package update, a few hundred) need to be downloaded to finish up. Stalls. About every second or third time I update, I get one or more stalls. Restarting the download will pick up where it got stalled at. Unlike the resolve failure or no package failure, these threads don't time out and go on. It's not hard to notice stalled downloads and restart the download process. And if I abort the download process so I can restart it and get the threads going again, any packages that were in the process of being downloaded will carry on from the point where they were interrupted when the download process gets around to them again. ~Steve -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org