From 0d6150e6343c51dbf24937fdc7809ecb620da7f1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 30 May 2012 05:12:54 -0400 Subject: Better recording of configuration sanity. --- gpscap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gpscap.py') diff --git a/gpscap.py b/gpscap.py index 6127217e..49eaea62 100644 --- a/gpscap.py +++ b/gpscap.py @@ -118,7 +118,7 @@ class GPSDictionary(ConfigParser.RawConfigParser): testfield += "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 += "No-configure icon" if self.get(dev, "rating") == "excellent": testfield += "Star iconStar iconStar iconStar 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("%s\n" % notes) ofp.write("\n") ofp.write("\n") -- cgit v1.2.1