diff options
Diffstat (limited to 'app-text/sgmltools-lite')
-rw-r--r-- | app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild index b8d8da45abc7..b23d92b022ee 100644 --- a/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild +++ b/app-text/sgmltools-lite/sgmltools-lite-3.0.3-r15.ebuild @@ -92,8 +92,10 @@ pkg_preinst() { } pkg_postinst() { - if [[ ! -f ${EROOT}/etc/sgml/sgml-lite.cat ]]; then - cp "${T}"/sgml-lite.cat "${EROOT}"/etc/sgml/ || die + local backup=${T}/sgml-lite.cat + local real=${EROOT}/etc/sgml/sgml-lite.cat + if ! cmp -s "${backup}" "${real}"; then + cp "${backup}" "${real}" || die fi sgml-catalog-r1_pkg_postinst } |