[PATCH 1/2] fix contains_not fdi-directive

David Zeuthen david at fubar.dk
Thu Apr 12 12:41:41 PDT 2007


On Tue, 2007-04-10 at 13:08 +0200, Danny Kukawka wrote:
> 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'

Committed to both HEAD and the 0.5.9 branch. Thanks.

     David




More information about the hal mailing list