commit:     87b601f3a5d30ee6897085b92c74f5a1fbd9f08d
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 11 22:42:27 2025 +0000
Commit:     Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Mon Aug 11 22:42:27 2025 +0000
URL:        https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=87b601f3

Correct a typo where $total is assigned

The += operator crept in where = ought to be. Though it does no harm,
rectify this accident.

Fixes: d01f4edd83cf9d41abe9941244a949a6f1100187
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>

 locale-gen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/locale-gen b/locale-gen
index 1513384..bc3ef6f 100755
--- a/locale-gen
+++ b/locale-gen
@@ -119,7 +119,7 @@ umask 0022;
        # Integrate the newly compiled locales into the system's locale archive.
        my $size = generate_archive($prefix, $gentoo_prefix, $locale_dir, 
$opt{'update'}, map +( $_->[2] ), @locales);
 
-       my $total += scalar @locales + scalar %installed_by;
+       my $total = scalar @locales + scalar %installed_by;
        printf "Successfully installed an archive containing %d locale%s, of %s 
MiB in size.\n",
                $total, plural($total), round($size / 2 ** 20);
 }

Reply via email to