Hi,

Quoting Joachim Breitner (2015-06-29 14:17:45)
> with the attached file and an empty Packages files , I get $
> dose-builddebcheck --latest --explain --failures --deb-native-arch=amd64
> Packages Sources The applications raised this exception : Parsing.Parse_error
> 
> 
> I cannot see a mistake in the file (but I might be wrong). In that case,
> this is a request for a better error message.

your problem is twofold:

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.

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

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.

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?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to