From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8BFBF138334 for ; Sun, 30 Sep 2018 22:51:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF0D4E08D3; Sun, 30 Sep 2018 22:50:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71541E08CA for ; Sun, 30 Sep 2018 22:50:43 +0000 (UTC) Received: from naomi.gilbertsystems.net (d192-24-229-26.try.wideopenwest.com [24.192.26.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 1EF6B335CEA; Sun, 30 Sep 2018 22:50:40 +0000 (UTC) From: Mike Gilbert To: gentoo-dev@lists.gentoo.org Cc: freedesktop-bugs@gentoo.org Subject: [gentoo-dev] [PATCH 4/5] xdg.eclass: look for files in ED and cleanup array syntax Date: Sun, 30 Sep 2018 18:50:34 -0400 Message-Id: <20180930225035.25434-4-floppym@gentoo.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180930225035.25434-1-floppym@gentoo.org> References: <20180930225035.25434-1-floppym@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 40ffd056-f51a-4a69-9031-4022f5f6e75d X-Archives-Hash: 9878fb8a5ae0dde66cc6ad6380867d22 Signed-off-by: Mike Gilbert --- eclass/xdg.eclass | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass index 36300dc5eaa2..4f4a38b05cb3 100644 --- a/eclass/xdg.eclass +++ b/eclass/xdg.eclass @@ -48,15 +48,13 @@ xdg_pkg_preinst() { XDG_ECLASS_DESKTOPFILES=() while IFS= read -r -d '' f; do - XDG_ECLASS_DESKTOPFILES+=( ${f} ) - done < <(cd "${D}" && find 'usr/share/applications' -type f -print0 2>/dev/null) + XDG_ECLASS_DESKTOPFILES+=( "${f}" ) + done < <(cd "${ED}" && find 'usr/share/applications' -type f -print0 2>/dev/null) XDG_ECLASS_MIMEINFOFILES=() while IFS= read -r -d '' f; do - XDG_ECLASS_MIMEINFOFILES+=( ${f} ) - done < <(cd "${D}" && find 'usr/share/mime' -type f -print0 2>/dev/null) - - export XDG_ECLASS_DESKTOPFILES XDG_ECLASS_MIMEINFOFILES + XDG_ECLASS_MIMEINFOFILES+=( "${f}" ) + done < <(cd "${ED}" && find 'usr/share/mime' -type f -print0 2>/dev/null) } # @FUNCTION: xdg_pkg_postinst -- 2.19.0