[OE-core] [PATCH 1/4] gtk-icon-cache.bbclass:fix support postrm at image creation time
Martin Jansa
martin.jansa at gmail.com
Thu Jan 17 09:26:58 UTC 2013
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 at 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 at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130117/641d9cc2/attachment-0002.sig>
More information about the Openembedded-core
mailing list