Home My Page Projects SODIAC
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

[#10361] dose2: parses debian package stanzas incorrectly when no trailing blank line

Date:
2010-05-25 10:51
Priority:
3
State:
Open
Submitted by:
Ralf Treinen (treinen)
Assigned to:
Jaap Boender (jaap)
Hardware:
PC
Product:
none
Operating System:
Linux
Component:
none
Version:
none
Severity:
normal
Resolution:
none
URL:
Summary:
dose2: parses debian package stanzas incorrectly when no trailing blank line

Detailed description
This error is observed with distcheck, svn revision 5198. It seems that the
parser has a problem at the end of the input file.

File "in" is (without the === lines) :

=================================================
Package: aa
Version: 1
Architecture: all
Depends: bb
=================================================

% ./distcheck < in
Warning: unknown name './distcheck', behaving like debcheck
Completing conflicts... * 100.0%
Conflicts and dependencies... * 100.0%
Solving * 100.0%
aa (= 1): OK

which obviously is wrong. I guess he didn't parse the last Depends line.
If I add an *empty* line at the end of file "in" :

% ./distcheck < in
Warning: unknown name './distcheck', behaving like debcheck
Completing conflicts... * 100.0%
Conflicts and dependencies... * 100.0%
Solving * 100.0%
aa (= 1): FAILED


If I then put some blank symbols on the last line, making it a non-empty
blank line:

% ./distcheck < in
Warning: unknown name './distcheck', behaving like debcheck
Completing conflicts... * 100.0%
Conflicts and dependencies... * 100.0%
Solving * 100.0%
aa (= 1): OK

No Comments Have Been Posted

No Changes Have Been Made to This Item