diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-10-09 21:24:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-20 17:41:24 +0100 |
commit | e6858627ab087f2f25ebbd6c4422eeae35f3b0ac (patch) | |
tree | b0a3762bbb1de3e192222c84c2df6b23e3741ae2 /meta/classes/package_rpm.bbclass | |
parent | 4df212e9c2a1dd7c80d180fd13b67e9f2799d3e1 (diff) | |
download | openembedded-core-e6858627ab087f2f25ebbd6c4422eeae35f3b0ac.tar.gz openembedded-core-e6858627ab087f2f25ebbd6c4422eeae35f3b0ac.tar.bz2 openembedded-core-e6858627ab087f2f25ebbd6c4422eeae35f3b0ac.tar.xz openembedded-core-e6858627ab087f2f25ebbd6c4422eeae35f3b0ac.zip |
Move packagedata code into oe.packagedata (sync from OE)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index b86356de2..1d8c68633 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -316,6 +316,7 @@ package_install_internal_rpm () { python write_specfile () { import textwrap + import oe.packagedata # We need to change '-' in a version field to '+' # This needs to be done BEFORE the mapping_rename_hook @@ -328,7 +329,7 @@ python write_specfile () { ver = depends_dict[dep] if dep and ver: if '-' in ver: - subd = read_subpkgdata_dict(dep, d) + subd = oe.packagedata.read_subpkgdata_dict(dep, d) pv = subd['PV'] reppv = pv.replace('-', '+') ver = ver.replace(pv, reppv) |