1 |
commit: 8e9b6ca0d9aea5c56f5ae89a741f87c281b30377 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 17 07:07:30 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 17 07:11:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9b6ca0 |
7 |
|
8 |
app-text/docbook-dsssl-stylesheets: Restore .cat backup for non-empty too |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../docbook-dsssl-stylesheets-1.79-r4.ebuild | 6 ++++-- |
13 |
1 file changed, 4 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.79-r4.ebuild b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.79-r4.ebuild |
16 |
index 8603dfc7f36..7137b03bc61 100644 |
17 |
--- a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.79-r4.ebuild |
18 |
+++ b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.79-r4.ebuild |
19 |
@@ -64,8 +64,10 @@ pkg_preinst() { |
20 |
} |
21 |
|
22 |
pkg_postinst() { |
23 |
- if [[ ! -f ${EROOT}/etc/sgml/dsssl-docbook-stylesheets.cat ]]; then |
24 |
- cp "${T}"/dsssl-docbook-stylesheets.cat "${EROOT}"/etc/sgml/ || die |
25 |
+ local backup=${T}/dsssl-docbook-stylesheets.cat |
26 |
+ local real=${EROOT}/etc/sgml/dsssl-docbook-stylesheets.cat |
27 |
+ if ! cmp -s "${backup}" "${real}"; then |
28 |
+ cp "${backup}" "${real}" || die |
29 |
fi |
30 |
# this one's shared with openjade, so we need to do it in postinst |
31 |
if ! grep -q -s dsssl-docbook-stylesheets.cat \ |