kde-apps/print-manager: Reduce pkg_postinst spam
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Dec 2018 22:08:04 +0000 (23:08 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Dec 2018 22:25:47 +0000 (23:25 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-apps/print-manager/print-manager-18.12.0.ebuild

index 2339cfc9baff8d0fa815adedc960a302a2d29afa..6076351f157fff29bcdfe9c595e008f2176819d9 100644 (file)
@@ -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
 }