diff options
Diffstat (limited to 'scripts/oe-pkgdata-browser')
-rwxr-xr-x | scripts/oe-pkgdata-browser | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/oe-pkgdata-browser b/scripts/oe-pkgdata-browser index 8d223185a4..e07005b807 100755 --- a/scripts/oe-pkgdata-browser +++ b/scripts/oe-pkgdata-browser | |||
@@ -49,11 +49,11 @@ def load(filename, suffix=None): | |||
49 | from configparser import ConfigParser | 49 | from configparser import ConfigParser |
50 | from itertools import chain | 50 | from itertools import chain |
51 | 51 | ||
52 | parser = ConfigParser() | 52 | parser = ConfigParser(delimiters=('=')) |
53 | if suffix: | 53 | if suffix: |
54 | parser.optionxform = lambda option: option.replace("_" + suffix, "") | 54 | parser.optionxform = lambda option: option.replace(":" + suffix, "") |
55 | with open(filename) as lines: | 55 | with open(filename) as lines: |
56 | lines = chain(("[fake]",), lines) | 56 | lines = chain(("[fake]",), (line.replace(": ", " = ", 1) for line in lines)) |
57 | parser.read_file(lines) | 57 | parser.read_file(lines) |
58 | 58 | ||
59 | # TODO extract the data and put it into a real dict so we can transform some | 59 | # TODO extract the data and put it into a real dict so we can transform some |