1 |
commit: 07fe566315d6c84e57a0c0d4cba7c70eef691648 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 17 07:07:38 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 17 07:11:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fe5663 |
7 |
|
8 |
app-text/linuxdoc-tools: Restore .cat backup for non-empty too |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild | 6 ++++-- |
13 |
1 file changed, 4 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild |
16 |
index 4f2129a2644..0639b6ae8b3 100644 |
17 |
--- a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild |
18 |
+++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild |
19 |
@@ -72,8 +72,10 @@ pkg_preinst() { |
20 |
} |
21 |
|
22 |
pkg_postinst() { |
23 |
- if [[ ! -f ${EROOT}/etc/sgml/linuxdoc.cat ]]; then |
24 |
- cp "${T}"/linuxdoc.cat "${EROOT}"/etc/sgml/ || die |
25 |
+ local backup=${T}/linuxdoc.cat |
26 |
+ local real=${EROOT}/etc/sgml/linuxdoc.cat |
27 |
+ if ! cmp -s "${backup}" "${real}"; then |
28 |
+ cp "${backup}" "${real}" || die |
29 |
fi |
30 |
|
31 |
latex-package_pkg_postinst |