summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-09-17 09:07:41 +0200
committerMichał Górny <mgorny@gentoo.org>2019-09-17 09:11:56 +0200
commitd12ab136a66fcbbd2ae00751f4980dc348d51ed7 (patch)
tree3bc0aef698f2b421d5d2cd04769fb2de0ee1154e
parentapp-text/openjade: Restore .cat backup for non-empty too (diff)
downloadgentoo-d12ab136a66fcbbd2ae00751f4980dc348d51ed7.tar.gz
gentoo-d12ab136a66fcbbd2ae00751f4980dc348d51ed7.tar.bz2
gentoo-d12ab136a66fcbbd2ae00751f4980dc348d51ed7.zip
app-text/sgml-common: Restore .cat backup for non-empty too
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--app-text/sgml-common/sgml-common-0.6.3-r7.ebuild2
1 files changed, 1 insertions, 1 deletions
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