Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 12 Sep 2022 19:14:42
Message-Id: 1663010071.d9745d995981183832c14fc63560ddfa49972f5d.arthurzam@gentoo
1 commit: d9745d995981183832c14fc63560ddfa49972f5d
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 3 11:44:05 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 19:14:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9745d99
7
8 vdr-plugin-2.eclass: fix UnquotedVariable
9
10 For the change in vdr_detect_po_dir, use quoted [@] for better
11 catching cases when members in po_subdir have spaces
12
13 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
14
15 eclass/vdr-plugin-2.eclass | 7 +++----
16 1 file changed, 3 insertions(+), 4 deletions(-)
17
18 diff --git a/eclass/vdr-plugin-2.eclass b/eclass/vdr-plugin-2.eclass
19 index f8d5a18854ed..546dbb803bf1 100644
20 --- a/eclass/vdr-plugin-2.eclass
21 +++ b/eclass/vdr-plugin-2.eclass
22 @@ -276,10 +276,9 @@ vdr_gettext_missing() {
23 # DIR ${S}/po or DIR ${S]/_subdir_/po
24 vdr_detect_po_dir() {
25 [[ -f po ]] && local po_dir="${S}"
26 - local po_subdir=( ${S}/${PO_SUBDIR} )
27 - local f
28 + local po_subdir=( "${S}"/${PO_SUBDIR} )
29
30 - pofile_dir=( ${po_dir} ${po_subdir[*]} )
31 + pofile_dir=( ${po_dir} "${po_subdir[@]}" )
32 }
33
34 # @FUNCTION: vdr_linguas_support
35 @@ -605,7 +604,7 @@ vdr-plugin-2_src_install() {
36 local linguas
37 for linguas in ${LINGUAS[*]}; do
38 insinto "${LOCDIR}"
39 - cp -r --parents ${linguas}* ${D%/}/${LOCDIR} \
40 + cp -r --parents ${linguas}* "${D%/}"/${LOCDIR} \
41 || die "could not copy linguas files"
42 done
43 fi