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 28275138334 for ; Tue, 17 Sep 2019 07:12:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EA91E0AA1; Tue, 17 Sep 2019 07:12:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 09524E0AA1 for ; Tue, 17 Sep 2019 07:12:06 +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 22FD634B29F 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 94CC37F7 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: <1568704315.07fe566315d6c84e57a0c0d4cba7c70eef691648.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/linuxdoc-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild X-VCS-Directories: app-text/linuxdoc-tools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 07fe566315d6c84e57a0c0d4cba7c70eef691648 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: 501e9925-ce1b-4870-8ab6-86a3e07231d4 X-Archives-Hash: 2907e5c95a23e3298e83014f1f081e33 commit: 07fe566315d6c84e57a0c0d4cba7c70eef691648 Author: Michał Górny gentoo org> AuthorDate: Tue Sep 17 07:07:38 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Sep 17 07:11:55 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fe5663 app-text/linuxdoc-tools: Restore .cat backup for non-empty too Signed-off-by: Michał Górny gentoo.org> app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild index 4f2129a2644..0639b6ae8b3 100644 --- a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild +++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.73-r1.ebuild @@ -72,8 +72,10 @@ pkg_preinst() { } pkg_postinst() { - if [[ ! -f ${EROOT}/etc/sgml/linuxdoc.cat ]]; then - cp "${T}"/linuxdoc.cat "${EROOT}"/etc/sgml/ || die + local backup=${T}/linuxdoc.cat + local real=${EROOT}/etc/sgml/linuxdoc.cat + if ! cmp -s "${backup}" "${real}"; then + cp "${backup}" "${real}" || die fi latex-package_pkg_postinst