]> code.ossystems Code Review - openembedded-core.git/commitdiff
docbook-sgml-dtd-native.inc: run install-catalog only during do_populate_sysroot
authorScott Garman <scott.a.garman@intel.com>
Mon, 4 Apr 2011 20:02:05 +0000 (13:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Apr 2011 22:45:10 +0000 (23:45 +0100)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc

index 83cedbcc1107120c0a35d9c082481859d2276cae..ede7bb1172012a9f4ef383b08846d40aeba8fb55 100644 (file)
@@ -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
 }