From: Scott Garman Date: Mon, 4 Apr 2011 20:07:17 +0000 (-0700) Subject: openjade-native: run install-catalog only during do_populate_sysroot X-Git-Tag: 2011-1~1861 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=638a3d15a84edfdd218a8c40306482f6c086b4e7;p=openembedded-core.git openjade-native: run install-catalog only during do_populate_sysroot Signed-off-by: Scott Garman --- diff --git a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb index 5c1037a5de..1c672e109e 100644 --- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb @@ -62,9 +62,12 @@ do_install() { } openjade_sstate_postinst() { - # Ensure that the catalog file sgml-docbook.cat is properly - # updated when the package is installed from sstate cache. - install-catalog \ - --add ${sysconfdir}/sgml/sgml-docbook.cat \ - ${sysconfdir}/sgml/openjade-${PV}.cat + if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ] + then + # Ensure that the catalog file sgml-docbook.cat is properly + # updated when the package is installed from sstate cache. + install-catalog \ + --add ${sysconfdir}/sgml/sgml-docbook.cat \ + ${sysconfdir}/sgml/openjade-${PV}.cat + fi }