summaryrefslogtreecommitdiffstats
path: root/scripts/oe-pkgdata-util
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-11 10:46:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-14 08:41:01 +0000
commit0f77efe9aec725285ac9d41b379325161a980644 (patch)
tree7f3e0790e3eda814c30f80aafe94f26ab41efc48 /scripts/oe-pkgdata-util
parent1fb1caf15ca3894e0d206ba1b7d4d9260ac93d28 (diff)
downloadast2050-yocto-poky-0f77efe9aec725285ac9d41b379325161a980644.zip
ast2050-yocto-poky-0f77efe9aec725285ac9d41b379325161a980644.tar.gz
oe-pkgdata-util: fix read-value to handle data with colons in the value
The read-value subcommand was truncating the value if it contained colons, for example FILES_INFO. (From OE-Core rev: 77411c775c4bf3fa7897985916c2d4a4af2dda47) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-pkgdata-util')
-rwxr-xr-xscripts/oe-pkgdata-util2
1 files changed, 1 insertions, 1 deletions
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))
OpenPOWER on IntegriCloud