[PATCH 1/2] fix contains_not fdi-directive

Danny Kukawka danny.kukawka at web.de
Tue Apr 10 04:08:40 PDT 2007


Hi, 

this patch fixes the contains_not FDI file directive/rule to return true (let 
the match not fail) if the property is not set on the device. This allow to 
have this rule:

       <match key="info.addons" contains_not="hald-addon-input">
         <append key="info.addons" type="strlist">hald-addon-input</append>
       </match>

Without this patch this fails if info.addons is not already set. With the 
change it would match if:
* info.addons is not available
or
* info.addons contains no string 'hald-addon-input'

Danny

 hald/linux/probing/probe-volume.c |   20 +++++++++++++++++---
 libhal/libhal.c                   |    3 +++
 2 files changed, 20 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-contains_not.diff
Type: text/x-diff
Size: 2961 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070410/42d0bee2/hal-fix-contains_not.bin


More information about the hal mailing list