1 |
commit: d12ab136a66fcbbd2ae00751f4980dc348d51ed7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 17 07:07:41 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 17 07:11:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d12ab136 |
7 |
|
8 |
app-text/sgml-common: Restore .cat backup for non-empty too |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-text/sgml-common/sgml-common-0.6.3-r7.ebuild | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
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 |
16 |
index a9d675c8206..18b9bdd5b86 100644 |
17 |
--- a/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild |
18 |
+++ b/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild |
19 |
@@ -62,7 +62,7 @@ pkg_preinst() { |
20 |
pkg_postinst() { |
21 |
# restore backed up files if necessary |
22 |
for f in sgml-ent.cat sgml-docbook.cat; do |
23 |
- if [[ ! -s ${EROOT}/etc/sgml/${f} ]]; then |
24 |
+ if ! cmp -s "${T}/${f}" "${EROOT}/etc/sgml/${f}"; then |
25 |
cp "${T}/${f}" "${EROOT}"/etc/sgml/ || die |
26 |
fi |
27 |
done |