This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ffe82bb942a80a9a10e0bc571489b9ab123cea5a

commit ffe82bb942a80a9a10e0bc571489b9ab123cea5a
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Tue Nov 9 05:04:45 2021 +0100

    Dpkg::Changelog::Entry::Debian: Fix full month misuse warning
    
    The hash only had the key but not the value, which meant the next key
    acted as the value, missing half the full months.
---
 scripts/Dpkg/Changelog/Entry/Debian.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/Dpkg/Changelog/Entry/Debian.pm 
b/scripts/Dpkg/Changelog/Entry/Debian.pm
index 38c1a59cc..fee5be8b9 100644
--- a/scripts/Dpkg/Changelog/Entry/Debian.pm
+++ b/scripts/Dpkg/Changelog/Entry/Debian.pm
@@ -88,13 +88,15 @@ my $regex_trailer = qr<
 >xo;
 
 my %week_day = map { $_ => 1 } qw(Mon Tue Wed Thu Fri Sat Sun);
-my %month_abbrev = map { $_ => 1 } qw(
+my @month_abbrev = qw(
     Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
 );
-my %month_name = map { $_ => } qw(
+my %month_abbrev = map { $_ => 1 } @month_abbrev;
+my @month_name = qw(
     January February March April May June July
     August September October November December
 );
+my %month_name = map { $month_name[$_] => $month_abbrev[$_] } 0 .. 11;
 
 =head1 METHODS
 

-- 
Dpkg.Org's dpkg

Reply via email to