From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E01B115827B for ; Fri, 15 Aug 2025 22:29:08 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C007A340E15 for ; Fri, 15 Aug 2025 22:29:08 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C333F110280; Fri, 15 Aug 2025 22:29:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BC513110280 for ; Fri, 15 Aug 2025 22:29:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 69282340E15 for ; Fri, 15 Aug 2025 22:29:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F22CE32D9 for ; Fri, 15 Aug 2025 22:29:05 +0000 (UTC) From: "Kerin Millar" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kerin Millar" Message-ID: <1755296548.87b724f3b5bf14ade06d3a15123e08677d05efbe.kfm@gentoo> Subject: [gentoo-commits] proj/locale-gen:master commit in: / X-VCS-Repository: proj/locale-gen X-VCS-Files: mkconfig X-VCS-Directories: / X-VCS-Committer: kfm X-VCS-Committer-Name: Kerin Millar X-VCS-Revision: 87b724f3b5bf14ade06d3a15123e08677d05efbe X-VCS-Branch: master Date: Fri, 15 Aug 2025 22:29:05 +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: bf4e8773-4eed-4420-9214-c95c58a928d4 X-Archives-Hash: fe9eba2aa193ed592ec46ace86a4bf4f commit: 87b724f3b5bf14ade06d3a15123e08677d05efbe Author: Kerin Millar plushkava net> AuthorDate: Fri Aug 15 22:22:28 2025 +0000 Commit: Kerin Millar plushkava net> CommitDate: Fri Aug 15 22:22:28 2025 +0000 URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=87b724f3 mkconfig: marginally simplify the territory cleanup code Signed-off-by: Kerin Millar plushkava.net> mkconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mkconfig b/mkconfig index d79b3af..d69597e 100755 --- a/mkconfig +++ b/mkconfig @@ -83,10 +83,12 @@ sub map_locale_attributes ($prefix) { $ref->$* = to_ascii($ref->$*); } } - if ($territory =~ m/^Myanmar/) { - $territory = 'Myanmar/Burma'; - } elsif ($territory eq 'Turkiye') { - $territory = 'Turkey'; + for ($territory) { + if (m/^Myanmar/) { + $_ = 'Myanmar/Burma'; + } elsif (m/^Turkiye\z/) { + $_ = 'Turkey'; + } } $attr_by{$locale} = { 'language' => $language,