From 5a61d35c67d0c12cae64b104107ccab3d216eb5e Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Wed, 20 May 2020 10:05:31 +0200 Subject: [PATCH] net-analyzer/wireshark: Remove /usr/share/appdata when present Package-Manager: Portage-2.3.99, Repoman-2.3.22 Fixes: b0222a2948853f723eb7b52e0b972702f1684b29 Signed-off-by: Jeroen Roovers --- net-analyzer/wireshark/wireshark-3.2.4.ebuild | 4 +++- net-analyzer/wireshark/wireshark-99999999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net-analyzer/wireshark/wireshark-3.2.4.ebuild b/net-analyzer/wireshark/wireshark-3.2.4.ebuild index e5c132a7e21a..f6f0080e6646 100644 --- a/net-analyzer/wireshark/wireshark-3.2.4.ebuild +++ b/net-analyzer/wireshark/wireshark-3.2.4.ebuild @@ -226,7 +226,9 @@ src_install() { done fi - rm -r "${D}"/usr/share/appdata || die + if [[ -d "${D}"/usr/share/appdata ]]; then + rm -r "${D}"/usr/share/appdata || die + fi } pkg_postinst() { diff --git a/net-analyzer/wireshark/wireshark-99999999.ebuild b/net-analyzer/wireshark/wireshark-99999999.ebuild index 8014ce381103..a358f4abf6ea 100644 --- a/net-analyzer/wireshark/wireshark-99999999.ebuild +++ b/net-analyzer/wireshark/wireshark-99999999.ebuild @@ -220,7 +220,9 @@ src_install() { done fi - rm -r "${D}"/usr/share/appdata || die + if [[ -d "${D}"/usr/share/appdata ]]; then + rm -r "${D}"/usr/share/appdata || die + fi } pkg_postinst() { -- 2.26.2