From 1dc7507c70d477bcb12614393d7a8a840808a517 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 29 May 2022 12:46:50 +0200 Subject: x11-themes/adwaita-icon-theme: Fix logic to remove old directory Thanks-to: Agostino Sarubbo Thanks-to: Joonas Niilola Closes: https://bugs.gentoo.org/847877 Signed-off-by: Pacho Ramos --- x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'x11-themes/adwaita-icon-theme') diff --git a/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild index 8f5929ec582b..b6c5f66fbb73 100644 --- a/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild +++ b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild @@ -67,7 +67,9 @@ src_compile() { pkg_preinst() { # Needed until bug #834600 is solved - rm -r "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita || die + if [[ -d "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita ]] ; then + rm -r "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita || die + fi } src_install() { -- cgit v1.2.3-65-gdbad