http://qa.mandrakesoft.com/show_bug.cgi?id=1174





------- Additional Comments From [EMAIL PROTECTED]  2003-02-25 20:09 -------
There is an improvement in the latest version of urpmi....

for instance.
until urpmi --auto-select --auto; do sleep 60; done Continues it's process until
it completes.  Even if it can't (on the first try) get the required packages it
keeps repeating until successful.  This is a great improvement.

However, the urpmi.update portion doesn't give the same behavior.  For
instance... here's an attempt at that portion.

until urpmi.update contrib; do sleep 60; done
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 1
(x86) (cdrom1).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 2
(x86) (cdrom2).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.International CD (x86)
(cdrom3).cz]
retrieving description file of "contrib"...
retrieving source hdlist (or synthesis) of "contrib"...
   
ftp://helios.dii.utk.edu/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/base/hdlist2.cz
...retrieving failed: curl failed: exited with 10 or signal 0

retrieve of source hdlist (or synthesis) failed
no hdlist file found for medium "contrib"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.contrib.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.main.cz]
[EMAIL PROTECTED] avery]#


============
I originally tried the statement suggested above.
until urpmi.update -a && urpmi --auto-select --auto; do sleep 60; done

The problem now with this line is that the individual sources may succeed or
fail to update, the urpmi --auto-select --auto persists until successful.  It's
certainly moving the direction I was hoping for.

============
`until urpmi.update medianame; do sleep 60; done`
would be a fair workaround if it gave the same behavior as `until urpmi
--auto-select --auto; do sleep 60; done` does.....



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
I've searched several places and not found this functionality in urpmi (or
urpmi.update)  It would be VERY nice to have an option to ask urpmi (or
urpmi.update) to retry x number of times (perhaps with a 0 being infinite?)  to
update the urpmi hdlists or download packages.  Instead what happens now is....
With urpmi.update if urpmi fails on the first try (it seems) it will give a
message that it failed to update the media...
with urpmi it suggests updating the urpmi database if it fails to connect to the
online sources.

This would be a VERY nice enhancement for including urpmi in any sort of script
(as well as just day to day use).

Reply via email to