[OE-core] [PATCH v2 3/7] oe-pkgdata-util: fix read-value to handle data with colons in the value
Paul Eggleton
paul.eggleton at linux.intel.com
Wed Feb 11 14:59:56 UTC 2015
The read-value subcommand was truncating the value if it contained
colons, for example FILES_INFO.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
scripts/oe-pkgdata-util | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 2baa9f4..1603dfb 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -162,7 +162,7 @@ def read_value(args):
with open(pkgdata_file, 'r') as f:
for line in f:
if line.startswith(valuename + ":"):
- val = line.split(': ')[1].rstrip()
+ val = line.split(': ', 1)[1].rstrip()
return val
logger.debug("read-value('%s', '%s' '%s'" % (args.pkgdata_dir, args.valuename, packages))
--
1.9.3
More information about the Openembedded-core
mailing list