Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/html401/
Date: Tue, 17 Sep 2019 07:12:09
Message-Id: 1568704314.73415678715ed16c911f4249b1f88c8293684562.mgorny@gentoo
1 commit: 73415678715ed16c911f4249b1f88c8293684562
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 17 07:07:36 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 17 07:11:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73415678
7
8 app-text/html401: Restore .cat backup for non-empty too
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-text/html401/html401-19991224-r4.ebuild | 6 ++++--
13 1 file changed, 4 insertions(+), 2 deletions(-)
14
15 diff --git a/app-text/html401/html401-19991224-r4.ebuild b/app-text/html401/html401-19991224-r4.ebuild
16 index 8f75a577ac4..2456ff58ee7 100644
17 --- a/app-text/html401/html401-19991224-r4.ebuild
18 +++ b/app-text/html401/html401-19991224-r4.ebuild
19 @@ -36,8 +36,10 @@ pkg_preinst() {
20 }
21
22 pkg_postinst() {
23 - if [[ ! -f ${EROOT}/etc/sgml/html401.cat ]]; then
24 - cp "${T}"/html401.cat "${EROOT}"/etc/sgml/ || die
25 + local backup=${T}/html401.cat
26 + local real=${EROOT}/etc/sgml/html401.cat
27 + if ! cmp -s "${backup}" "${real}"; then
28 + cp "${backup}" "${real}" || die
29 fi
30 sgml-catalog-r1_pkg_postinst
31 }