summaryrefslogtreecommitdiff
path: root/meta/classes/toaster.bbclass
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-01-29 17:21:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-29 17:40:29 +0000
commitc3f3fed1b397b6ee6d44e7d39e63d084e4a88e30 (patch)
treeae1719959816e0940c84e6babbca2efbf4ff66e9 /meta/classes/toaster.bbclass
parent3f96e97b65bfb2505fb0127a4d6a585e9b14a3e4 (diff)
downloadopenembedded-core-c3f3fed1b397b6ee6d44e7d39e63d084e4a88e30.tar.gz
openembedded-core-c3f3fed1b397b6ee6d44e7d39e63d084e4a88e30.tar.bz2
openembedded-core-c3f3fed1b397b6ee6d44e7d39e63d084e4a88e30.zip
toaster.bbclass: save original package name
If we can get the original package name when reading package infos in toaster.bbclass, we save it for proper referincing in the toater ui. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r--meta/classes/toaster.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 7c404b9e65..eed30d4b23 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -94,11 +94,15 @@ python toaster_layerinfo_dumpdata() {
def _toaster_load_pkgdatafile(dirpath, filepath):
import json
+ import re
pkgdata = {}
with open(os.path.join(dirpath, filepath), "r") as fin:
for line in fin:
try:
kn, kv = line.strip().split(": ", 1)
+ m = re.match(r"^PKG_([^A-Z:]*)", kn)
+ if m:
+ pkgdata['OPKGN'] = m.group(1)
kn = "_".join([x for x in kn.split("_") if x.isupper()])
pkgdata[kn] = kv.strip()
if kn == 'FILES_INFO':