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 B1B40138336 for ; Sun, 21 Jul 2019 16:26:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB544E0844; Sun, 21 Jul 2019 16:26:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 9DA83E0844 for ; Sun, 21 Jul 2019 16:26:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC24F3483DF for ; Sun, 21 Jul 2019 16:26:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8CF56E6 for ; Sun, 21 Jul 2019 16:26:36 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1563624208.a1060b6f27a547b28a5c603768b43cfa84137ec0.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_funcs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: a1060b6f27a547b28a5c603768b43cfa84137ec0 X-VCS-Branch: master Date: Sun, 21 Jul 2019 16:26:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8a49a4c-09c8-4570-88cc-9a44036ef10d X-Archives-Hash: 7490433a5563aa0e9900877bfd854e70 commit: a1060b6f27a547b28a5c603768b43cfa84137ec0 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Jul 20 12:03:28 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Jul 20 12:03:28 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=a1060b6f gen_funcs.sh: is_valid_triplet(): Relax regex Bug: https://bugs.gentoo.org/690262 Signed-off-by: Thomas Deutschmann gentoo.org> gen_funcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_funcs.sh b/gen_funcs.sh index 31e4a6c..67b5d21 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -221,7 +221,7 @@ is_valid_triplet() { local triplet=${1} local is_triplet=no - if [[ "${triplet}" =~ ^[a-zA-Z0-9]{2,}-[a-zA-Z0-9]{2,}-[a-zA-Z0-9]{2,} ]] + if [[ "${triplet}" =~ ^[^-]{2,}-[^-]{2,}-.{2,} ]] then is_triplet=yes fi