From 67f349683fdc83d30b38c86a00a4a688c206d1d8 Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Mon, 4 Apr 2011 13:02:05 -0700 Subject: docbook-sgml-dtd-native.inc: run install-catalog only during do_populate_sysroot (From OE-Core rev: 34ec9086c429bef167554c57a80b5f69d7e61a21) Signed-off-by: Scott Garman Signed-off-by: Richard Purdie --- .../docbook-sgml-dtd/docbook-sgml-dtd-native.inc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'meta/recipes-devtools/docbook-sgml-dtd') 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 83cedbcc11..ede7bb1172 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 } -- cgit v1.2.3-54-g00ecf