]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-pkgdata-util: fix read-value to handle data with colons in the value
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 11 Feb 2015 10:46:25 +0000 (10:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Feb 2015 08:40:36 +0000 (08:40 +0000)
The read-value subcommand was truncating the value if it contained
colons, for example FILES_INFO.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/oe-pkgdata-util

index 2baa9f4c4285b72bb5f9f5cd296d2fe9d522c879..1603dfbc2e2ab75b61c248602933190857a8c5d7 100755 (executable)
@@ -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))