Notice desktop-database scripts are different for %post and % postun, so separate them into two script files.
--- include/desktop-database-install.script 2007-10-11 19:33:12.177372000 +0800 +++ include/desktop-database-uninstall.script 2007-10-11 19:33:23.631041000 +0800 @@ -1,3 +1,3 @@ ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; echo '/usr/bin/update-desktop-database' -) | $BASEDIR/lib/postrun -b -u -c JDS_wait +) | $BASEDIR/lib/postrun -b -u -c JDS Please refer to latest SUNWgnome-remote-desktop.spec and SUNWgnome-desklets.spec On Thu, 2007-10-11 at 14:40 +0800, Halton Huo wrote: > Using Laca's example in SUNWgnome-themes.spec, I change postrun script > in SUNWgnome-remote-desktop.spec and SUNWgnome-desklets.spec. > > Three inline script include files are added: > * desktop-database.script > * gconf-install.script > * scrollkeeper-update.script > > > Halton. > -- Halton Huo Solaris Desktop Team, Sun Microsystems Tel: +86-10-82618200 ext. 82113/ +86-10-626732113 Fax: +86-10-62780969 eMail: Halton.Huo at Sun.COM -------------- next part -------------- A non-text attachment was scrubbed... Name: postrun-script-2.diff Type: text/x-patch Size: 3659 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/jds-review/attachments/20071011/4ccdcb54/attachment.bin>
