kde-apps/ark: Reduce pkg_postinst spam
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 13 Dec 2018 22:07:20 +0000 (23:07 +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/ark/ark-18.12.0.ebuild

index c6f3ec55fd7042b8f5dcb67372684a7c1fc94f6e..6ed461e7c98b94f2837266fc1a6ec7d7a4dd7d8e 100644 (file)
@@ -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
 }