[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#513766: lintian should warn when it failed to parse the changelog



Raphael Geissert <atomo64@gmail.com> writes:

> It would be nice if lintian warned when Parse::DebianChangelog fails to
> parse the changelog, instead of just silently ignoring the errors.
> Example:
>
> 'errors' => {
>               'parser' => [[
>              'debfiles/changelog',
>              '5',
>              'couldn\'t parse date Mon, 29 Dec 2008 85:45:00 -0000'
>            ]]
>             },
> 'data' => [
>             bless( {
> [...]
>     'Date' => 'Mon, 29 Dec 2008 85:45:00 -0000',
>     'Urgency' => 'high',
>     'Urgency_Comment' => '',
>     'Timestamp' => undef,

It's supposed to.  That's what the code in changelog-file is supposed to
do:

    my $changes = $info->changelog;
    if (my @errors = $changes->get_parse_errors) {
        foreach (@errors) {
            tag "syntax-error-in-debian-changelog", "line $_->[1]", "\"$_->[2]\"";
        }
    }

This is checked in the test suite, so it presumably didn't stop working
entirely.  Do you have a changelog file that you expected to produce
errors which didn't?

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: