projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da9587
)
app-text/xhtml1: Restore .cat backup for non-empty too
author
Michał Górny
<mgorny@gentoo.org>
Tue, 17 Sep 2019 07:07:44 +0000
(09:07 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Tue, 17 Sep 2019 07:11:58 +0000
(09:11 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-text/xhtml1/xhtml1-20020801-r6.ebuild
patch
|
blob
|
history
diff --git
a/app-text/xhtml1/xhtml1-20020801-r6.ebuild
b/app-text/xhtml1/xhtml1-20020801-r6.ebuild
index 306fefc150cb1e65621551651b6ebe84dcc63c11..f8356d929bb635f66d7ab207d3cdafde6b80261d 100644
(file)
--- a/
app-text/xhtml1/xhtml1-20020801-r6.ebuild
+++ b/
app-text/xhtml1/xhtml1-20020801-r6.ebuild
@@
-46,8
+46,10
@@
pkg_preinst() {
}
pkg_postinst() {
- if [[ ! -f ${EROOT}/etc/sgml/xhtml1.cat ]]; then
- cp "${T}"/xhtml1.cat "${EROOT}"/etc/sgml/ || die
+ local backup=${T}/xhtml1.cat
+ local real=${EROOT}/etc/sgml/xhtml1.cat
+ if ! cmp -s "${backup}" "${real}"; then
+ cp "${backup}" "${real}" || die
fi
sgml-catalog-r1_pkg_postinst