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 AFA70138334 for ; Thu, 13 Dec 2018 22:24:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C57A4E0D7E; Thu, 13 Dec 2018 22:24:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 8A69DE0D7E for ; Thu, 13 Dec 2018 22:24:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 64EB3335CDD for ; Thu, 13 Dec 2018 22:24:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37EC64ED for ; Thu, 13 Dec 2018 22:24:10 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1544739839.ca4ccf4938fb96c08880ada22a7a38efc216cbbe.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/ark/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/ark/ark-18.12.49.9999.ebuild kde-apps/ark/ark-9999.ebuild X-VCS-Directories: kde-apps/ark/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: ca4ccf4938fb96c08880ada22a7a38efc216cbbe X-VCS-Branch: master Date: Thu, 13 Dec 2018 22:24:10 +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: b439cf67-5930-4f87-8185-65b750f83628 X-Archives-Hash: fe3f18d1fef0f8f0995e485d70e8dd4e commit: ca4ccf4938fb96c08880ada22a7a38efc216cbbe Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Dec 13 20:50:05 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Dec 13 22:23:59 2018 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ca4ccf49 kde-apps/ark: Reduce pkg_postinst spam Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> kde-apps/ark/ark-18.12.49.9999.ebuild | 20 +++++++++++--------- kde-apps/ark/ark-9999.ebuild | 22 ++++++++++++---------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/kde-apps/ark/ark-18.12.49.9999.ebuild b/kde-apps/ark/ark-18.12.49.9999.ebuild index 61662f672b..8a3c4b2f82 100644 --- a/kde-apps/ark/ark-18.12.49.9999.ebuild +++ b/kde-apps/ark/ark-18.12.49.9999.ebuild @@ -60,16 +60,18 @@ src_configure() { pkg_postinst() { kde5_pkg_postinst - if ! has_version app-arch/unar && ! has_version app-arch/unrar; then - elog "For extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." - fi + if [[ -z "${REPLACING_VERSIONS}" ]]; then + if ! has_version app-arch/unar && ! has_version app-arch/unrar; then + elog "For extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." + fi - has_version app-arch/rar || \ - elog "For creating rar archives, installing app-arch/rar is required." + has_version app-arch/rar || \ + elog "For creating rar archives, installing app-arch/rar is required." - has_version app-arch/p7zip || \ - elog "For handling 7-Zip archives, install app-arch/p7zip." + has_version app-arch/p7zip || \ + elog "For handling 7-Zip archives, install app-arch/p7zip." - has_version app-arch/lrzip || \ - elog "For handling lrz archives, install app-arch/lrzip." + has_version app-arch/lrzip || \ + elog "For handling lrz archives, install app-arch/lrzip." + fi } diff --git a/kde-apps/ark/ark-9999.ebuild b/kde-apps/ark/ark-9999.ebuild index b83fdf4b9b..8a3c4b2f82 100644 --- a/kde-apps/ark/ark-9999.ebuild +++ b/kde-apps/ark/ark-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -60,16 +60,18 @@ src_configure() { pkg_postinst() { kde5_pkg_postinst - if ! has_version app-arch/unar && ! has_version app-arch/unrar; then - elog "For extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." - fi + if [[ -z "${REPLACING_VERSIONS}" ]]; then + if ! has_version app-arch/unar && ! has_version app-arch/unrar; then + elog "For extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." + fi - has_version app-arch/rar || \ - elog "For creating rar archives, installing app-arch/rar is required." + has_version app-arch/rar || \ + elog "For creating rar archives, installing app-arch/rar is required." - has_version app-arch/p7zip || \ - elog "For handling 7-Zip archives, install app-arch/p7zip." + has_version app-arch/p7zip || \ + elog "For handling 7-Zip archives, install app-arch/p7zip." - has_version app-arch/lrzip || \ - elog "For handling lrz archives, install app-arch/lrzip." + has_version app-arch/lrzip || \ + elog "For handling lrz archives, install app-arch/lrzip." + fi }