[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] [PATCH 4/5] xdg.eclass: look for files in ED and cleanup array syntax
From: Mike Gilbert <floppym () gentoo ! org>
Date: 2018-09-30 22:50:34
Message-ID: 20180930225035.25434-4-floppym () gentoo ! org
[Download RAW message or body]
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic