diff options
Diffstat (limited to 'meta/classes/package.bbclass')
-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') |