From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A524D138334 for ; Tue, 17 Sep 2019 07:12:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D561FE0AB2; Tue, 17 Sep 2019 07:12:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF89CE0AB2 for ; Tue, 17 Sep 2019 07:12:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 481D634B2A2 for ; Tue, 17 Sep 2019 07:12:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCCED7F9 for ; Tue, 17 Sep 2019 07:12:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1568704316.d12ab136a66fcbbd2ae00751f4980dc348d51ed7.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/sgml-common/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/sgml-common/sgml-common-0.6.3-r7.ebuild X-VCS-Directories: app-text/sgml-common/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d12ab136a66fcbbd2ae00751f4980dc348d51ed7 X-VCS-Branch: master Date: Tue, 17 Sep 2019 07:12:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 88938a0c-5484-4475-8819-7ee536d898c5 X-Archives-Hash: 7c6ef08f791a798498aeb659e844ac19 commit: d12ab136a66fcbbd2ae00751f4980dc348d51ed7 Author: Michał Górny gentoo org> AuthorDate: Tue Sep 17 07:07:41 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Sep 17 07:11:56 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d12ab136 app-text/sgml-common: Restore .cat backup for non-empty too Signed-off-by: Michał Górny gentoo.org> app-text/sgml-common/sgml-common-0.6.3-r7.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild b/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild index a9d675c8206..18b9bdd5b86 100644 --- a/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild +++ b/app-text/sgml-common/sgml-common-0.6.3-r7.ebuild @@ -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