package_config with boolean AND between classes (instead of OR)
Maximilian Wilhelm
max at rfc2324.org
Mon May 5 04:27:21 CEST 2008
Michael Tautschnig scripsit:
Hi!
> > could we introduce a boolean AND between classes in package_config
> > files?
> I think you're not the first bringing up this issue, but the first one providing
> a solution as well :-) IMHO, this would indeed be very useful, but ...
> [...]
> > Maybe it's better to use a complete set of boolean expressions: &, |, !, ()
> > But I could already work with this "AND-patch". ;)
> ... I think we should really discuss how far we should go. Your patch
> essentially
> - introduces NOT
> - changes the semantics of the list in that it is now AND and not OR anymore
> If we really like to see OR and (), this will require at least a larger chunk of
> code, first for parsing the statement and then something to interpret it. Yet,
> people might be already happy seeing NOT integrated (which includes myself).
> What do others think about this issue? Do we need OR and ()? Please be aware
> that OR may be implemented by several PACKAGES install lines as well. I'd opt
> for integrating Jürgen's patch, even though the change in semantics must be well
> documented.
I wrote something which does this for some internal applikation which
uses FAI_CLASSES to decide which things to do.
The tool read /etc/fai/FAI_CLASSES and checks where the expr specified
as cmdline parameter matches for these classes.
See the perl script attached.
Ciao
Max
--
Follow the white penguin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: magic.pl
Type: text/x-perl
Size: 1854 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20080505/d3ce8a44/attachment.bin
More information about the linux-fai-devel
mailing list