From: Jeroen Roovers Date: Wed, 20 May 2020 08:05:31 +0000 (+0200) Subject: net-analyzer/wireshark: Remove /usr/share/appdata when present X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a61d35c67d0c12cae64b104107ccab3d216eb5e;p=gentoo.git 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 --- 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() {