From ad6182343997a405079870a2fe91c4e0c6b94595 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Sep 2019 19:33:39 +0100 Subject: gentoo resync : 25.09.2019 --- app-text/xhtml1/xhtml1-20020801-r6.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app-text/xhtml1/xhtml1-20020801-r6.ebuild') diff --git a/app-text/xhtml1/xhtml1-20020801-r6.ebuild b/app-text/xhtml1/xhtml1-20020801-r6.ebuild index 306fefc150cb..f8356d929bb6 100644 --- a/app-text/xhtml1/xhtml1-20020801-r6.ebuild +++ b/app-text/xhtml1/xhtml1-20020801-r6.ebuild @@ -46,8 +46,10 @@ pkg_preinst() { } pkg_postinst() { - if [[ ! -f ${EROOT}/etc/sgml/xhtml1.cat ]]; then - cp "${T}"/xhtml1.cat "${EROOT}"/etc/sgml/ || die + local backup=${T}/xhtml1.cat + local real=${EROOT}/etc/sgml/xhtml1.cat + if ! cmp -s "${backup}" "${real}"; then + cp "${backup}" "${real}" || die fi sgml-catalog-r1_pkg_postinst -- cgit v1.2.3