media-libs/libgpod: Fix removal of empty /tmp directory

It's not clear why this failed in the bug report, but let's check whether
${ED}/tmp exists before removing it.

Closes: https://bugs.gentoo.org/900927
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2024-04-27 22:49:19 +01:00
parent 76b28ad1b3
commit e694c331b2
+1 -1
View File
@@ -66,7 +66,7 @@ src_configure() {
src_install() {
default
rm "${ED}"/usr/$(get_libdir)/pkgconfig/libgpod-sharp.pc || die
use udev && rmdir "${ED}"/tmp || die
[[ -d ${ED}/tmp ]] && rmdir "${ED}"/tmp || die
find "${ED}" -name '*.la' -type f -delete || die
}