diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-04-04 13:02:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-04 23:51:55 +0100 |
commit | 67f349683fdc83d30b38c86a00a4a688c206d1d8 (patch) | |
tree | d3be921516f87c4765c0375402e5ef2f69132508 /meta/recipes-devtools/docbook-sgml-dtd | |
parent | e659426a458694b6c337791b631e2bfc296f4aaf (diff) | |
download | ast2050-yocto-poky-67f349683fdc83d30b38c86a00a4a688c206d1d8.zip ast2050-yocto-poky-67f349683fdc83d30b38c86a00a4a688c206d1d8.tar.gz |
docbook-sgml-dtd-native.inc: run install-catalog only during do_populate_sysroot
(From OE-Core rev: 34ec9086c429bef167554c57a80b5f69d7e61a21)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/docbook-sgml-dtd')
-rw-r--r-- | meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | 13 |
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 83cedbc..ede7bb1 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 } |