diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-02-11 10:46:25 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-14 08:41:01 +0000 |
| commit | 0f77efe9aec725285ac9d41b379325161a980644 (patch) | |
| tree | 7f3e0790e3eda814c30f80aafe94f26ab41efc48 | |
| parent | 1fb1caf15ca3894e0d206ba1b7d4d9260ac93d28 (diff) | |
| download | 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>
| -rwxr-xr-x | scripts/oe-pkgdata-util | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 2baa9f4c42..1603dfbc2e 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util | |||
| @@ -162,7 +162,7 @@ def read_value(args): | |||
| 162 | with open(pkgdata_file, 'r') as f: | 162 | with open(pkgdata_file, 'r') as f: |
| 163 | for line in f: | 163 | for line in f: |
| 164 | if line.startswith(valuename + ":"): | 164 | if line.startswith(valuename + ":"): |
| 165 | val = line.split(': ')[1].rstrip() | 165 | val = line.split(': ', 1)[1].rstrip() |
| 166 | return val | 166 | return val |
| 167 | 167 | ||
| 168 | logger.debug("read-value('%s', '%s' '%s'" % (args.pkgdata_dir, args.valuename, packages)) | 168 | logger.debug("read-value('%s', '%s' '%s'" % (args.pkgdata_dir, args.valuename, packages)) |
