Bug#670441: libconfig-model-perl: Use line number for error: Unknow paragraph in section 2
Dominique Dumont
dod at debian.org
Thu Apr 26 11:45:38 UTC 2012
On Wednesday 25 April 2012 18:34:05 Jari Aalto wrote:
> Package: libconfig-model-perl
> Version: 2.013-1
> Severity: normal
>
> The output:
>
> File debian/copyright line ? has a syntax error:
> Unknow paragraph in section 2. Is it a Files or a License section ?
>
> SUGGESTION
>
> Please express error with line numbers.
>
> The "section 2" does not indicate a known location in a file. The file in
> question is below.
Ack.
Solving this ossiue is not that easy, because parsing is done in 2 passes:
- one to store copyright data into a data strucurte
- store data from that structure into configuration tree.
The error is detected during the second pass. At this stage, the line number
from the file was not kep in the first stage.
To solve this, I need to keep track of line numbers in the data structure
created in the first pass.
All the best
--
https://github.com/dod38fr/config-model/ -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org
More information about the pkg-perl-maintainers
mailing list