[OE-core] [PATCH 4/4] gtk-immodules-cache.bbclass:fix support postrm at image creation time

Burton, Ross ross.burton at intel.com
Thu Jan 17 09:52:30 UTC 2013


On 17 January 2013 07:07, Hongxu Jia <hongxu.jia at windriver.com> wrote:
> Let gtk_immodule_cache_postrm exit with ok at image creation time
>
> [YOCTO #3633]
>
> Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
> ---
>  meta/classes/gtk-immodules-cache.bbclass |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/gtk-immodules-cache.bbclass b/meta/classes/gtk-immodules-cache.bbclass
> index 9ffb03b..6e1f5ef 100644
> --- a/meta/classes/gtk-immodules-cache.bbclass
> +++ b/meta/classes/gtk-immodules-cache.bbclass
> @@ -31,7 +31,7 @@ fi
>
>  gtk_immodule_cache_postrm() {
>  if [ "x$D" != "x" ]; then
> -    exit 1
> +    exit 0
>  fi
>  if [ ! -z `which gtk-query-immodules-2.0` ]; then
>      gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules

Surely you still want to run the postrm, and by exiting with 0 you're
not deferring it.  Can't this use the same logic as the postinst to
run on both build machine and target?

Ross




More information about the Openembedded-core mailing list