Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] font.eclass: Fix condition for FONT_S in src_install().
Date: Fri, 17 Apr 2020 16:23:02
Message-Id: ublnqt737@gentoo.org
1 Whitespace can be other characters than literal space.
2
3 Fixes: 58cea2803d7aa7b1a98f72aa55b6221618dc5e5f
4 Signed-off-by: Ulrich Müller <ulm@g.o>
5 ---
6 eclass/font.eclass | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/eclass/font.eclass b/eclass/font.eclass
10 index bf24701f12fc..e9e448a8155b 100644
11 --- a/eclass/font.eclass
12 +++ b/eclass/font.eclass
13 @@ -170,7 +170,7 @@ font_src_install() {
14 font_xfont_config "${dir}"
15 popd > /dev/null || die
16 done
17 - elif [[ ${FONT_S/ } != "${FONT_S}" ]]; then
18 + elif [[ ${FONT_S/[[:space:]]} != "${FONT_S}" ]]; then
19 # backwards compatibility code, can be removed after 2021-02-14
20 eqawarn "Using a space-separated list for FONT_S is deprecated."
21 eqawarn "Use a bash array instead if there are multiple directories."
22 --
23 2.26.1

Attachments

File name MIME type
signature.asc application/pgp-signature