commit:     afc171329b46bf5dcc75f21294b730088cedafbf
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 13 22:08:04 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Dec 13 22:25:47 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc17132

kde-apps/print-manager: Reduce pkg_postinst spam

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/print-manager/print-manager-18.12.0.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kde-apps/print-manager/print-manager-18.12.0.ebuild 
b/kde-apps/print-manager/print-manager-18.12.0.ebuild
index 2339cfc9baf..6076351f157 100644
--- a/kde-apps/print-manager/print-manager-18.12.0.ebuild
+++ b/kde-apps/print-manager/print-manager-18.12.0.ebuild
@@ -36,8 +36,9 @@ RDEPEND="${DEPEND}
 "
 
 pkg_postinst(){
-       if ! use gtk ; then
-               ewarn
+       kde5_pkg_postinst
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] && ! use gtk ; then
                ewarn "By switching off \"gtk\" USE flag, you have chosen to do 
without"
                ewarn "an important, though optional, runtime dependency:"
                ewarn
@@ -48,6 +49,5 @@ pkg_postinst(){
                ewarn
                ewarn "\"Failed to group devices: 'The name 
org.fedoraproject.Config.Printing"
                ewarn "was not provided by any .service files'\""
-               ewarn
        fi
 }

Reply via email to