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=3618de586c8f2eeb9003c209bc5563bd6bda1a85

commit 3618de586c8f2eeb9003c209bc5563bd6bda1a85
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Jul 26 02:16:56 2024 +0200

    Dpkg::Changelog: Remove useless escaping for -
    
    These are not within [] to mark a range, they are literal minus signs.
---
 scripts/Dpkg/Changelog/Debian.pm       | 2 +-
 scripts/Dpkg/Changelog/Entry/Debian.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Dpkg/Changelog/Debian.pm b/scripts/Dpkg/Changelog/Debian.pm
index e7dd7c4ac..051bea77e 100644
--- a/scripts/Dpkg/Changelog/Debian.pm
+++ b/scripts/Dpkg/Changelog/Debian.pm
@@ -200,7 +200,7 @@ sub parse {
                $self->parse_error($file, $., $error, $_);
            }
            $expect = NEXT_OR_EOF;
-       } elsif (m/^ \-\-/) {
+       } elsif (m/^ --/) {
            $self->parse_error($file, $., g_('badly formatted trailer line'), 
"$_");
        } elsif (m/^\s{2,}(?:\S)/) {
            unless ($expect eq START_CHANGES or $expect eq CHANGES_OR_TRAILER) {
diff --git a/scripts/Dpkg/Changelog/Entry/Debian.pm 
b/scripts/Dpkg/Changelog/Entry/Debian.pm
index a35292050..11c09063f 100644
--- a/scripts/Dpkg/Changelog/Entry/Debian.pm
+++ b/scripts/Dpkg/Changelog/Entry/Debian.pm
@@ -70,7 +70,7 @@ my $regex_header = qr{
 # day of week ($6), date-time ($7) and this into month name ($8).
 my $regex_trailer = qr<
     ^
-    \ \-\-                              # Trailer marker
+    \ --                                # Trailer marker
     \ (.*)                              # Maintainer name
     \ \<(.*)\>                          # Maintainer email
     (\ \ ?)                             # Blanks

-- 
Dpkg.Org's dpkg

Reply via email to