Control: retitle -1 Parsing.Parse_error - improve error message
Control: severity -1 wishlist

Hi,

Am Montag, den 29.06.2015, 15:29 +0200 schrieb Johannes Schauer:
> Firstly, there are two syntax errors in your Sources file. They are
> "libghc-data-default-dev (<< = 0.6)" and "libghc-shakespeare-dev (<< 
> = 2.1)".
> Observe how the version relationship is invalid.

well spotted! I just did not see that.

> There are also weird line breaks in your Build-Depends field in the 
> middle of package names. Maybe they were not intended either?

Not here, likely a problem with the mail client?

> Secondly, even after fixing them you will get the following error:
> 
>       Fatal error in module common/input.ml: 
>        Input file Packages is empty
> 
> So dose3 is currently unable to handle empty input files.

Yes, the empty file was just to reproduce the error. It did not have to
make sense :-)

> The first problem (the wrong version relationship) indeed deserves a 
> much better error message.
> 
> As for the second problem (the empty Packages file) I was annoyed by 
> this myself for a long time and would like to get to know a use case 
> where an empty input file would make sense. Currently I'm working 
> around this by conditionally only running dose3 in my scripts when 
> the input is not empty but I'd like to get rid of these checks. So 
> I'm curious: what is your use case to use an empty
> Packages file?

Sorry, none :-]

I sometimes have empty Sources lists, but only if my build-all-script
has determined that it has nothing to build at all. But like you I
would not mind if dose would handle that gracefully.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to