summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/sgml-common')
-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