~ubuntu-branches/ubuntu/precise/nvidia-common/precise-proposed

« back to all changes in this revision

Viewing changes to Quirks/quirkreader.py

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2012-03-12 12:30:52 UTC
  • Revision ID: package-import@ubuntu.com-20120312123052-o4s60xr1ob9uy5qt
Tags: 1:0.2.41
* Add a test suite and run it at build time with dh_auto_test.
* Work correctly when the pipe symbol is used in "Match" tags.
  This symbol only worked when used in the "Handler" tag.
  Both test cases are covered in the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
                                    tag_match = elem.strip()
98
98
                                else:
99
99
                                    tag_value = elem.strip()
 
100
                                    tag_values = tag_value.split('|')
100
101
                                    break
101
102
                        del temp_bits
102
 
                        self._quirks[it].match_tags[tag_match] = tag_value
 
103
                        self._quirks[it].match_tags[tag_match] = tag_values
103
104
                        del temp_str
104
105
                    elif line.lower().strip().startswith('xorgsnippet'):
105
106
                        inside_x_snippet = True