From 99de12f152413c1cb942eac26082d6795a285151 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 4 Jan 2023 14:20:37 +0000 Subject: package: Move mapping_rename_hook to packagedata function library This function is used by the packaging tasks/classes and makes much more sense in the packagedata function library. (From OE-Core rev: 7a512a8803101310772d83836e6b78ebaf8121de) Signed-off-by: Richard Purdie --- meta/classes-global/package.bbclass | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'meta/classes-global/package.bbclass') diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass index 5c250776f8..d334da6fb3 100644 --- a/meta/classes-global/package.bbclass +++ b/meta/classes-global/package.bbclass @@ -607,16 +607,3 @@ python do_packagedata_setscene () { } addtask do_packagedata_setscene -# -# Helper functions for the package writing classes -# - -def mapping_rename_hook(d): - """ - Rewrite variables to account for package renaming in things - like debian.bbclass or manual PKG variable name changes - """ - pkg = d.getVar("PKG") - oe.packagedata.runtime_mapping_rename("RDEPENDS", pkg, d) - oe.packagedata.runtime_mapping_rename("RRECOMMENDS", pkg, d) - oe.packagedata.runtime_mapping_rename("RSUGGESTS", pkg, d) -- cgit v1.2.3-54-g00ecf