This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=63e9d12972c866ed02aca040501de1d9b922e880 commit 63e9d12972c866ed02aca040501de1d9b922e880 Author: Guillem Jover <[email protected]> AuthorDate: Fri Aug 9 04:30:42 2019 +0200 Dpkg::Changelog: Document methods provided by subclasses Reported-by: Felix Lechner <[email protected]> --- debian/changelog | 2 ++ scripts/Dpkg/Changelog.pm | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/debian/changelog b/debian/changelog index e559872dd..d1fbe287a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,8 @@ dpkg (1.20.0) UNRELEASED; urgency=medium - man: Clarify that the pager is called via «$SHELL -c». - dpkg-shlibdeps: Document split_soname() function. Prompted by Christopher Crim <[email protected]>. + - Dpkg::Changelog: Document methods provided by subclasses. + Reported by Felix Lechner <[email protected]>. * Code internals: - Dpkg::Source::Package: Refactor original tarball handling. - perl: Use File::Copy instead of spawning mv/cp commands. diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm index 47752b911..060081079 100644 --- a/scripts/Dpkg/Changelog.pm +++ b/scripts/Dpkg/Changelog.pm @@ -90,6 +90,22 @@ sub set_options { $self->{$_} = $opts{$_} foreach keys %opts; } +=item $count = $c->parse($fh, $description) + +Read the filehandle and parse a changelog in it. The data in the object is +reset before parsing new data. + +Returns the number of changelog entries that have been parsed with success. + +This method needs to be implemented by one of the specialized changelog +format subclasses. + +=item $count = $c->load($filename) + +Parse $filename contents for a changelog. + +Returns the number of changelog entries that have been parsed with success. + =item $c->reset_parse_errors() Can be used to delete all information about errors occurred during -- Dpkg.Org's dpkg

