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=a21e044b7e9c992d4e748adb447db00e902826df

commit a21e044b7e9c992d4e748adb447db00e902826df
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Aug 6 05:53:03 2024 +0200

    Dpkg::Changelog::Parse: Use %opts instead of %opt in function POD
    
    Use the same pattern as the rest of the code base.
---
 scripts/Dpkg/Changelog/Parse.pm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/Dpkg/Changelog/Parse.pm b/scripts/Dpkg/Changelog/Parse.pm
index add9539be..eefc6435e 100644
--- a/scripts/Dpkg/Changelog/Parse.pm
+++ b/scripts/Dpkg/Changelog/Parse.pm
@@ -72,19 +72,19 @@ sub _changelog_detect_format {
 
 =over 4
 
-=item $fields = changelog_parse(%opt)
+=item $fields = changelog_parse(%opts)
 
 This function will parse a changelog. In list context, it returns as many
 L<Dpkg::Control> objects as the parser did create. In scalar context, it will
 return only the first one. If the parser did not return any data, it will
 return an empty list in list context or undef on scalar context. If the
 parser failed, it will die. Any parse errors will be printed as warnings
-on standard error, but this can be disabled by passing $opt{verbose} to 0.
+on standard error, but this can be disabled by passing $opts{verbose} to 0.
 
 The changelog file that is parsed is F<debian/changelog> by default but it
-can be overridden with $opt{file}. The changelog name used in output messages
-can be specified with $opt{label}, otherwise it will default to $opt{file}.
-The default output format is "dpkg" but it can be overridden with $opt{format}.
+can be overridden with $opts{file}. The changelog name used in output messages
+can be specified with $opts{label}, otherwise it will default to $opts{file}.
+The default output format is "dpkg" but it can be overridden with 
$opts{format}.
 
 The parsing itself is done by a parser module (searched in the standard
 perl library directories. That module is named according to the format that
@@ -92,13 +92,13 @@ it is able to parse, with the name capitalized. By default 
it is either
 L<Dpkg::Changelog::Debian> (from the "debian" format) or the format name looked
 up in the 40 last lines of the changelog itself (extracted with this perl
 regular expression "\schangelog-format:\s+([0-9a-z]+)\W"). But it can be
-overridden with $opt{changelogformat}.
+overridden with $opts{changelogformat}.
 
-If $opt{compression} is false, the file will be loaded without compression
+If $opts{compression} is false, the file will be loaded without compression
 support, otherwise by default compression support is disabled if the file
 is the default.
 
-All the other keys in %opt are forwarded to the parser module constructor.
+All the other keys in %opts are forwarded to the parser module constructor.
 
 =cut
 

-- 
Dpkg.Org's dpkg

Reply via email to