diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-30 05:12:54 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-30 05:12:54 -0400 |
commit | 0d6150e6343c51dbf24937fdc7809ecb620da7f1 (patch) | |
tree | ba8327c5a2d8e27721a861b01f51b3b76f0561f3 /gpscap.py | |
parent | c6d6871c6db02ca631876fd9464715df733b7500 (diff) | |
download | gpsd-0d6150e6343c51dbf24937fdc7809ecb620da7f1.tar.gz |
Better recording of configuration sanity.
Diffstat (limited to 'gpscap.py')
-rw-r--r-- | gpscap.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -118,7 +118,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): testfield += "<img title='Have regression test' src='regression.png' alt='Regression-test icon'>" else: testfield += tested - if self.has_option(dev, "noconfigure"): + if self.has_option(dev, "configurable") and self.get(dev, "configurable") == 'insane': testfield += "<img title='Requires -b option' src='noconfigure.png' alt='No-configure icon'>" if self.get(dev, "rating") == "excellent": testfield += "<img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'>" @@ -142,8 +142,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): else: notes = "" if self.has_option(dev, "submitter"): - notes += " Reported by %s." % self.get(dev, "submitter") - notes = notes.replace("@", "@").replace("<", "<").replace(">", ">") + notes += " Reported by %s." % self.get(dev, "submitter").replace("@", "@").replace("<", "<").replace(">", ">") ofp.write("<td>%s</td>\n" % notes) ofp.write("</tr>\n") ofp.write("</table>\n") |