[PATCH] add new fdi match attribute contains_not for strlist
David Zeuthen
david at fubar.dk
Wed Feb 28 10:26:38 PST 2007
On Sat, 2007-02-24 at 18:56 +0100, Danny Kukawka wrote:
> Hi,
>
> This patch adds a new attribute for FDI file match tag for string lists
> (only). The new attribute named contains_not and allow you to match if a
> given string is not contained in the string list as in such cases for
> example:
>
> <match key="info.callouts" contains_not="foobar">
> <append key="info.callouts" type="strlist">foobar</append>
> </match>
>
> This allow you to add e.g. callouts to the list without to double entries.
That's pretty useful; two comments
- this could be useful for strings too so perhaps add it?
- MATCH_CONTAINS_NOT should be added as last element in match_type
to preserve binary compatibility with cache files
With these two changes, please commit. Thanks!
David
More information about the hal
mailing list