diff options
author | Richard Purdie <richard@openedhand.com> | 2008-10-02 19:56:19 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-10-02 19:56:19 +0000 |
commit | 5bcae485f5074031ee989e9c8fb81f3e9114c770 (patch) | |
tree | ba38e134668ae183bfad2d306abf78ac477ff91e | |
parent | 08565015fb5bad7e240f7bc498daad2ed904f689 (diff) | |
download | poky-5bcae485f5074031ee989e9c8fb81f3e9114c770.tar.gz |
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
-rw-r--r-- | meta/classes/package.bbclass | 6 |
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() { | |||
470 | val = bb.data.getVar('%s_%s' % (var, pkg), d, 1) | 470 | val = bb.data.getVar('%s_%s' % (var, pkg), d, 1) |
471 | if val: | 471 | if val: |
472 | f.write('%s_%s: %s\n' % (var, pkg, encode(val))) | 472 | f.write('%s_%s: %s\n' % (var, pkg, encode(val))) |
473 | return | ||
474 | val = bb.data.getVar('%s' % (var), d, 1) | ||
475 | if val: | ||
476 | f.write('%s: %s\n' % (var, encode(val))) | ||
477 | return | ||
473 | 478 | ||
474 | packages = bb.data.getVar('PACKAGES', d, True) | 479 | packages = bb.data.getVar('PACKAGES', d, True) |
475 | pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True) | 480 | pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True) |
@@ -490,6 +495,7 @@ python emit_pkgdata() { | |||
490 | subdata_file = pkgdatadir + "/runtime/%s" % pkg | 495 | subdata_file = pkgdatadir + "/runtime/%s" % pkg |
491 | sf = open(subdata_file, 'w') | 496 | sf = open(subdata_file, 'w') |
492 | write_if_exists(sf, pkg, 'PN') | 497 | write_if_exists(sf, pkg, 'PN') |
498 | write_if_exists(sf, pkg, 'PV') | ||
493 | write_if_exists(sf, pkg, 'PR') | 499 | write_if_exists(sf, pkg, 'PR') |
494 | write_if_exists(sf, pkg, 'DESCRIPTION') | 500 | write_if_exists(sf, pkg, 'DESCRIPTION') |
495 | write_if_exists(sf, pkg, 'RDEPENDS') | 501 | write_if_exists(sf, pkg, 'RDEPENDS') |