The fix is to provide the 'refresh' option for all the Desktop caching for OpenSolaris. The Desktop cache SMF services were created to address the lack of postinstall scripts capabilities of pkg(5) So these services simply provided the 'start' option when the machine boot up. There are occasional changes when the user want to force an update of the caches, the only way to do is to touch a new files in the appropriate directories, that is very cumbersome and error-prone.
So providing a 'refresh' option is to force the cache to be created regardless whether any new data files have been added or not. The fix is simply to factor the existing scripts into a couple of functions: start_<cache script_name> refresh_<cache_script_name> Then $1 is the used to decide which method to run. also uprev the tarball version to 0.1.4. see attached diff. Thanks, -Ghee -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: desktop-cache-add-refresh-option.diff URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20090128/4eb45956/attachment.ksh>
