Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Mon, 29 Jul 2019 20:10:28
Message-Id: 1564348770.efe9365be7d8b0aab2d0768f05848f89657b45ee.whissi@gentoo
1 commit: efe9365be7d8b0aab2d0768f05848f89657b45ee
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 27 20:29:25 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 28 21:19:30 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=efe9365b
7
8 gen_determineargs.sh: determine_real_args(): Fix LOCALVERSION validation pattern
9
10 Fixes c859019 ("Add --kernel-localversion option")
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 gen_determineargs.sh | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/gen_determineargs.sh b/gen_determineargs.sh
17 index f1c887e..3674cf0 100755
18 --- a/gen_determineargs.sh
19 +++ b/gen_determineargs.sh
20 @@ -477,7 +477,7 @@ determine_real_args() {
21 UNSET)
22 ;;
23 *)
24 - local valid_localversion_pattern='^-[A-Za-z0-9\-_]{1,}$'
25 + local valid_localversion_pattern='^[A-Za-z0-9_.-]{1,}$'
26 if [[ ! "${KERNEL_LOCALVERSION}" =~ ${valid_localversion_pattern} ]]
27 then
28 gen_die "--kernel-localversion value '${KERNEL_LOCALVERSION}' does not match '${valid_localversion_pattern}' regex!"