Re: [PATCH 1/4] gtk-icon-cache.bbclass:fix support postrm at image creation time

Martin Jansa
2013-01-17T09:42:29Z

[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]

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 <hongxu.jia@windriver.com>
> ---
> 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
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]