[OE-core] [PATCH 2/5] sato-icon-theme: make postinst scriplet run at do_rootfs time

Burton, Ross ross.burton at intel.com
Mon Aug 6 09:28:59 UTC 2012


On 3 August 2012 21:19, Laurentiu Palcu <laurentiu.palcu at intel.com> wrote:
>  pkg_postinst_${PN} () {
> -        if [ "x$D" != "x" ]; then
> -                exit 1
> +        gtk-update-icon-cache -q $D/usr/share/icons/Sato
> +        if [ ! -d $D/etc/gtk-2.0 ]; then
> +            mkdir -p $D/etc/gtk-2.0
>          fi
> -        gtk-update-icon-cache -q /usr/share/icons/Sato
> -        echo 'gtk-icon-theme-name = "Sato"' >> /etc/gtk-2.0/gtkrc
> +        echo 'gtk-icon-theme-name = "Sato"' >> $D/etc/gtk-2.0/gtkrc
>  }

Surely sato-icon-theme should be inheriting the gtk-icon-cache class
to remove all of the duplicated logic?

Ross




More information about the Openembedded-core mailing list