mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
app-text/sgml-common: Restore .cat backup for non-empty too
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -62,7 +62,7 @@ pkg_preinst() {
|
||||
pkg_postinst() {
|
||||
# restore backed up files if necessary
|
||||
for f in sgml-ent.cat sgml-docbook.cat; do
|
||||
if [[ ! -s ${EROOT}/etc/sgml/${f} ]]; then
|
||||
if ! cmp -s "${T}/${f}" "${EROOT}/etc/sgml/${f}"; then
|
||||
cp "${T}/${f}" "${EROOT}"/etc/sgml/ || die
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user