openjade-native: run install-catalog only during do_populate_sysroot

(From OE-Core rev: 638a3d15a84edfdd218a8c40306482f6c086b4e7)

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Garman 2011-04-04 13:07:17 -07:00 committed by Richard Purdie
parent 67f349683f
commit 733c9b913d
1 changed files with 8 additions and 5 deletions

View File

@ -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
}