From: Scott Garman Date: Mon, 4 Apr 2011 20:09:26 +0000 (-0700) Subject: docbook-dsssl-stylesheets-native: run install-catalog only during do_populate_sysroot X-Git-Tag: 2011-1~1860 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=620679dbb552d67c0697497005685df932e1b050;p=openembedded-core.git docbook-dsssl-stylesheets-native: run install-catalog only during do_populate_sysroot Signed-off-by: Scott Garman --- diff --git a/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb b/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb index fc4d266a9c..88d24dd949 100644 --- a/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb +++ b/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb @@ -38,9 +38,12 @@ do_install () { } docbook_dsssl_stylesheets_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/dsssl-docbook-stylesheets.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/dsssl-docbook-stylesheets.cat + fi }