The webrev, http://cr.opensolaris.org/~padraig/ips-9852-v2/ , fixes
9852 UMN and PM check for updates should use plan_update_all

This webrev does a number of things:

1) Rename um-checkforupdates to pm-checkforupdates and move from SUNWipkg-um to SUNWipkg-gui.

2) Change packagemanager.py so that it calls pm-checkforupdates to determine whether Update All button should be enabled.

3) Change checkforupdates.py to use plan_update_all to determine whether updates are available.

Note that this is quite slow. It takes over 60 seconds on my system.

Following Shawn's suggestion we cache the last_refresh properties of the publishers in the image and avoid running plan_update_all if they have not changed.

When pm-checkforupdates is run by updatemanagernotifier it runs as the logged in user and cannot write to the cache directory.

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

Reply via email to