On Wed, Aug 03, 2011 at 10:47:24PM +0200, Ralf Treinen wrote: > Hi Andreas, > > On Wed, Aug 03, 2011 at 02:54:53PM +0200, Julian Andres Klode wrote: > > Package: cudf > > > > I'd like to define something like: > > > > property: > > recommends: vpkgformula = [] , > > > > But it seems that this is not supported. I did not completely > > read the specification, but I believe that there should be an > > option to define the empty list as the default value. > > The type of recommends is vpkgformula, that is logical formulas and > not lists. This type has special values "true!" and "false!" (without > the quotes). Note the exclamation point which distinguishes these from > the constants of type bool. The reason why we did not support the > empty list as a constant is that this would be ambiguous: it could be > an empty disjunction (=false) or an empty conjunction (=true). Would this work for vpkglist as well? > > If you want to say that a package by default has no recommends then you > should write: > > property: > recommends: vpkgformula = true! Results in loading package universe ... Error while parsing universe: a value of type "typedecl" was expected, but "recommends: vpkgformula = true!" has been found Location: lines: 2-3 Bug in the CUDF parser? -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Attachment:
pgpEKZ1_Ya0NO.pgp
Description: PGP signature