[poky] [PATCH 2/3] openjade-native: run install-catalog only during do_populate_sysroot
Scott Garman
scott.a.garman at intel.com
Mon Apr 4 13:19:48 PDT 2011
From: Scott Garman <scott.a.garman at intel.com>
Signed-off-by: Scott Garman <scott.a.garman at intel.com>
---
.../openjade/openjade-native_1.3.2.bb | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
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 5c1037a..f98eea2 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,11 @@ 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" ]; 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
}
--
1.7.1
More information about the poky
mailing list