summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2011-04-04 13:02:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-04 23:45:10 +0100
commit34ec9086c429bef167554c57a80b5f69d7e61a21 (patch)
tree5b3e245f78cab573e1bad9dc50482c301a6d33bc /meta
parent0e310f1efa366d7b867840f9e18bb98b0e9310df (diff)
downloadopenembedded-core-34ec9086c429bef167554c57a80b5f69d7e61a21.tar.gz
openembedded-core-34ec9086c429bef167554c57a80b5f69d7e61a21.tar.bz2
openembedded-core-34ec9086c429bef167554c57a80b5f69d7e61a21.tar.xz
openembedded-core-34ec9086c429bef167554c57a80b5f69d7e61a21.zip
docbook-sgml-dtd-native.inc: run install-catalog only during do_populate_sysroot
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
index 83cedbcc1..ede7bb117 100644
--- a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
+++ b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
@@ -39,9 +39,12 @@ do_install () {
}
docbook_sgml_dtd_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/sgml-docbook-dtd-${DTD_VERSION}.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/sgml-docbook-dtd-${DTD_VERSION}.cat
+ fi
}