commit: 678899ba99b6cb69a0495699bf2026cb0a211416
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 4 12:05:39 2025 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Mon Aug 4 12:05:39 2025 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=678899ba
Refrain from passing $prefix to the generate_locales sub
Presently, the generate_locales subroutine is given the value of $prefix
as a parameter but makes no use of it. Refrain from specifying it as a
parameter.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/locale-gen b/locale-gen
index b7b37d4..7a6a0a1 100755
--- a/locale-gen
+++ b/locale-gen
@@ -113,7 +113,7 @@ delete @ENV{'BASH_ENV', 'CDPATH'};
enter_tempdir($prefix);
# Compile the selected locales.
- generate_locales($prefix, $opt{'jobs'}, @locales);
+ generate_locales($opt{'jobs'}, @locales);
# Integrate the newly compiled locales into the system's locale archive.
generate_archive($prefix, $locale_dir, $opt{'update'}, map +( $_->[2]
), @locales);
@@ -359,7 +359,7 @@ sub enter_tempdir ($prefix) {
}
}
-sub generate_locales ($prefix, $workers, @locales) {
+sub generate_locales ($workers, @locales) {
# Trap SIGINT and SIGTERM so that they may be handled gracefully.
my $handler = sub ($signal) { $DEFERRED_SIGNAL ||= $signal };
local @SIG{'INT', 'TERM'} = ($handler, $handler);