From d12ab136a66fcbbd2ae00751f4980dc348d51ed7 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 17 Sep 2019 09:07:41 +0200 Subject: app-text/sgml-common: Restore .cat backup for non-empty too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-text/sgml-common/sgml-common-0.6.3-r7.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild index a9d675c8206a..18b9bdd5b860 100644 --- a/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild +++ b/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild @@ -62,7 +62,7 @@ pkg_preinst() { pkg_postinst() { # restore backed up files if necessary for f in sgml-ent.cat sgml-docbook.cat; do - if [[ ! -s ${EROOT}/etc/sgml/${f} ]]; then + if ! cmp -s "${T}/${f}" "${EROOT}/etc/sgml/${f}"; then cp "${T}/${f}" "${EROOT}"/etc/sgml/ || die fi done -- cgit v1.2.3-65-gdbad