On Thu, Jan 17, 2013 at 03:07:19PM +0800, Hongxu Jia wrote:
> The gtk_icon_cache_postrm failed at image creation time because ${D} is not
> assigned as the prefix of icondir.

Some packages are removed at image creation time? Why is postrm
executed?

And why don't use use $D in both cases (when empty and not empty) those
2 for cycles look the same.
 
Cheers,

> [YOCTO #3633]
> 
> Signed-off-by: Hongxu Jia <[email protected]>
> ---
>  meta/classes/gtk-icon-cache.bbclass |    9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/meta/classes/gtk-icon-cache.bbclass 
> b/meta/classes/gtk-icon-cache.bbclass
> index 7c7dd78..4499782 100644
> --- a/meta/classes/gtk-icon-cache.bbclass
> +++ b/meta/classes/gtk-icon-cache.bbclass
> @@ -32,6 +32,15 @@ done
>  }
>  
>  gtk_icon_cache_postrm() {
> +if [ "$D" != "" ]; then
> +    for icondir in $D/usr/share/icons/* ; do
> +        if [ -d $icondir ] ; then
> +            gtk-update-icon-cache -qt  $icondir
> +        fi
> +    done
> +    exit 0
> +fi
> +
>  for icondir in /usr/share/icons/* ; do
>      if [ -d $icondir ] ; then
>          gtk-update-icon-cache -qt  $icondir
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: [email protected]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to