net-analyzer/wireshark: Remove /usr/share/appdata when present
authorJeroen Roovers <jer@gentoo.org>
Wed, 20 May 2020 08:05:31 +0000 (10:05 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 20 May 2020 08:06:00 +0000 (10:06 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Fixes: b0222a2948853f723eb7b52e0b972702f1684b29
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/wireshark/wireshark-3.2.4.ebuild
net-analyzer/wireshark/wireshark-99999999.ebuild

index e5c132a7e21a2e301646ceb79416eafcd78dc15a..f6f0080e66464b1811d764017685e72ec3943a3f 100644 (file)
@@ -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() {
index 8014ce381103ba99467dfc534b6f749ab2321829..a358f4abf6ea158dd0cd6a1a7cbd2ea157a21b2c 100644 (file)
@@ -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() {