From e6858627ab087f2f25ebbd6c4422eeae35f3b0ac Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Sat, 9 Oct 2010 21:24:38 -0700 Subject: Move packagedata code into oe.packagedata (sync from OE) Signed-off-by: Chris Larson --- meta/classes/package_rpm.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes/package_rpm.bbclass') 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) -- cgit v1.2.3