diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-11 15:04:19 +0000 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-11-16 13:04:30 +0800 |
commit | b27a11f4ddc0c10ff7e5fb447431bff1411a5417 (patch) | |
tree | 8c12eb9ec9bfdb16c36883e48870421955c6f475 | |
parent | f87a3aba3086cd3fd89274337f25fc1717d6c981 (diff) | |
download | openembedded-core-b27a11f4ddc0c10ff7e5fb447431bff1411a5417.tar.gz |
scripts/oe-package-browser: Fix after overrides change
After the overrides change, the format of pkgdata changed and this
usage of configparser no longer works. This change is a bandaid to make
things work but the pkgdata format isn't very similar to ini files
so this may need to be reimplmented in a better way in the long run.
[YOCTO #14619]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 25a8ec6e2891b71bc280aacaf5f62ecc4b0bd1d1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-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): from configparser import ConfigParser from itertools import chain - parser = ConfigParser() + parser = ConfigParser(delimiters=('=')) if suffix: - parser.optionxform = lambda option: option.replace("_" + suffix, "") + parser.optionxform = lambda option: option.replace(":" + suffix, "") with open(filename) as lines: - lines = chain(("[fake]",), lines) + lines = chain(("[fake]",), (line.replace(": ", " = ", 1) for line in lines)) parser.read_file(lines) # TODO extract the data and put it into a real dict so we can transform some |