MINI MINI MANI MO
=[c @ s; d d l Z d d l Z d g Z d e f d YZ d S( iNt
DeviceMatcherc B s e Z d Z d Z d Z RS( s,
Device name matching against the devices specification in tuning profiles.
The devices specification consists of multiple rules separated by spaces.
The rules have a syntax of shell-style wildcards and are either positive
or negative. The negative rules are prefixed with an exclamation mark.
c C s t | t r$ t j d | } n g | D]/ } | j d r+ | j d k r+ | ^ q+ } g | D] } | | k rg | d ^ qg } t | d k r | j d n t } x* | D]"