From 6f6bfc2b4f44aca16ac86201f0df82bf3599cffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miroslav=20=C5=A0ulc?= Date: Thu, 7 Nov 2019 16:54:37 +0100 Subject: [PATCH] media-gfx/inkscape-1.0_beta1: improved extensions check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/696794 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Miroslav Å ulc --- media-gfx/inkscape/inkscape-1.0_beta1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/media-gfx/inkscape/inkscape-1.0_beta1.ebuild b/media-gfx/inkscape/inkscape-1.0_beta1.ebuild index 578f4ed7dfcd..3bed12295c66 100644 --- a/media-gfx/inkscape/inkscape-1.0_beta1.ebuild +++ b/media-gfx/inkscape/inkscape-1.0_beta1.ebuild @@ -150,7 +150,9 @@ src_install() { find "${ED}" -type f -name "*.la" -delete || die # No extensions are present in beta1 - if [[ -n $(find "${ED}"/usr/share/${PN}/extensions -mindepth 1) ]]; then + local extdir="${ED}"/usr/share/${PN}/extensions + + if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then python_optimize "${ED}"/usr/share/${PN}/extensions fi -- 2.26.2