Shawn Walker wrote:
> Padraig O'Briain wrote:
>   
>> The webrev http://cr.opensolaris.org/~padraig/ips-5873-v1/ fixes
>> bug 5873 - No need to refresh catalogs when installing a package.
>>     
>
> 1) you shouldn't assume people are running updatemanager or the cron 
> refresh thing
>
> 2) we specifically made the change to have the system automatically 
> refresh catalogs during install, etc. some months ago
>
> 3) changing this behaviour would mean the cli/gui no longer have 
> consistent behaviour
>
> However, I could be convinced that you could skip this if you perform a 
> catalog refresh at least once at some point after startup or on the 
> first install/update.  We should not be relying on any other program 
> (such as updatemanager) that may or may not be running to do this.
>
> Arguably, if the performance of refresh catalog is the issue, I'd rather 
> fix that.  It should be a relatively quick operation.
>
> Looking for feedback from other team members.
>
> Cheers,
>   
I agree, blindly assuming that the catalogs are current is the wrong 
approach. Stephen has some thoughts on an authority giving the client 
guidance on how often it should be refreshed, but I'm not certain what 
time frame that's going to happen on. I don't think refreshing only at 
start up is adequate either since someone may start package manager and 
leave it running in the background for days or weeks. Until the 
authority has more guidance on refresh rate, I would be alright with the 
package manager tracking its last refresh and refreshing at start up, 
and then again if the last refresh was over one day ago. (Why one day? 
Cause it just seems like a reasonable period to me for now. If someone 
wants to argue for 6 hours, or 2 days, I wouldn't really have objections.)

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

Reply via email to