summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-02 19:56:19 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-02 19:56:19 +0000
commit5bcae485f5074031ee989e9c8fb81f3e9114c770 (patch)
treeba38e134668ae183bfad2d306abf78ac477ff91e /meta/classes
parent08565015fb5bad7e240f7bc498daad2ed904f689 (diff)
downloadopenembedded-core-5bcae485f5074031ee989e9c8fb81f3e9114c770.tar.gz
openembedded-core-5bcae485f5074031ee989e9c8fb81f3e9114c770.tar.bz2
openembedded-core-5bcae485f5074031ee989e9c8fb81f3e9114c770.zip
package.bbclass: Write out extra useful data into the pkgdata files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5388 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index a267403295..00298cf3c4 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -470,6 +470,11 @@ python emit_pkgdata() {
val = bb.data.getVar('%s_%s' % (var, pkg), d, 1)
if val:
f.write('%s_%s: %s\n' % (var, pkg, encode(val)))
+ return
+ val = bb.data.getVar('%s' % (var), d, 1)
+ if val:
+ f.write('%s: %s\n' % (var, encode(val)))
+ return
packages = bb.data.getVar('PACKAGES', d, True)
pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True)
@@ -490,6 +495,7 @@ python emit_pkgdata() {
subdata_file = pkgdatadir + "/runtime/%s" % pkg
sf = open(subdata_file, 'w')
write_if_exists(sf, pkg, 'PN')
+ write_if_exists(sf, pkg, 'PV')
write_if_exists(sf, pkg, 'PR')
write_if_exists(sf, pkg, 'DESCRIPTION')
write_if_exists(sf, pkg, 'RDEPENDS')