On Wed, 16 Jul 2003, Olivier Blin wrote:

> > All that it needs to do is run MandrakeUpdate, or if the user just wants
> > to see what has happened, diff the current descriptions file (or some
> > other convenient file maintained by urpmi) against the one on the
> > server, and show what has been added.
> 
> Why run MandrakeUpdate ?

Only if the user (after seeing there are updates) chose to update. The 
"diff" view would allow them to see whether they want to or not (sorry, 
described them in reverse).

> It requires root privileges and this applet will be run by any user ...

The applet would launch MandrakeUpdate on request.

> 
> > > But how could this applet know if the user has access to Internet ?
> > > Should it care about that ?
> > 
> > It should not care about anything but whether the file
> > (description/list/synthesis.hdlist etc etc) for the source configured in
> > urpmi as an update source has been updated.
> 
> It just has to compare the last modified time of the hdlist or synthesis in 
> /var/lib/urpmi/ and in the mirrors.
> It's very quick to check the attributes of this files on ftp mirrors.

The descriptions file is a small file (currently 62k for 9.1), that is 
added to, so it should "continue" (ie wget -c) very well, and should be 
pretty quick to check, and for free we get the descriptions of what the 
new updates are.

> How can we do with http mirrors ? Use lynx -dump ?
> 

I suspect HTTP headers cannot be relied upon (proxies etc). 

> > This will change it's
> > colour. The user should then click on it, it should get the updated
> > decriptions file, and show what has changed, with a button "Run updates
> > now" which launches MandrakeUpdate after the user enters the root password.
> > 
> > Remember that most of the time it should be running as a normal user,
> > and thus should not run 'urpmi.update' or anything else that requires
> > elevated priveleges.
> 
> I agree :)
> 
> 

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7

******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
******************************************************************

Reply via email to