diff options
Diffstat (limited to 'meta/recipes-devtools/sgml-common')
-rw-r--r-- | meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb index 597536570d..97b308a88b 100644 --- a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb +++ b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb | |||
@@ -22,8 +22,6 @@ S = "${WORKDIR}/sgml-common-${PV}" | |||
22 | 22 | ||
23 | SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle" | 23 | SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle" |
24 | SSTATEPOSTINSTFUNCS += "sgml_common_sstate_postinst" | 24 | SSTATEPOSTINSTFUNCS += "sgml_common_sstate_postinst" |
25 | CLEANFUNCS += "sgml_common_sstate_clean" | ||
26 | |||
27 | 25 | ||
28 | do_install_append() { | 26 | do_install_append() { |
29 | # install-catalog script contains hard-coded references to | 27 | # install-catalog script contains hard-coded references to |
@@ -59,13 +57,14 @@ sgml_common_sstate_postinst() { | |||
59 | fi | 57 | fi |
60 | done | 58 | done |
61 | fi | 59 | fi |
62 | fi | 60 | cat << EOF > ${SSTATE_INST_POSTRM} |
63 | } | 61 | #!/bin/sh |
64 | 62 | ||
65 | sgml_common_sstate_clean () { | 63 | # Ensure that the catalog file sgml-docbook.cat is properly |
66 | # Ensure that the catalog file sgml-docbook.cat is properly | 64 | # updated when the package is removed from sstate cache. |
67 | # updated when the package is removed from sstate cache. | 65 | if [ -f ${sysconfdir}/sgml/sgml-docbook.cat ]; then |
68 | if [ -f ${sysconfdir}/sgml/sgml-docbook.cat ]; then | 66 | sed -i '/\/sgml\/sgml-ent.cat/d' ${sysconfdir}/sgml/sgml-docbook.cat |
69 | sed -i '/\/sgml\/sgml-ent.cat/d' ${sysconfdir}/sgml/sgml-docbook.cat | 67 | fi |
68 | EOF | ||
70 | fi | 69 | fi |
71 | } | 70 | } |