diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-04 14:20:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-05 11:52:50 +0000 |
commit | 99de12f152413c1cb942eac26082d6795a285151 (patch) | |
tree | 550adb431fcc2b979fa07fa58eca5542192c37ab /meta/lib/oe/packagedata.py | |
parent | ab8c9d503eca4cbb4e72d17a3418de222c34d305 (diff) | |
download | poky-99de12f152413c1cb942eac26082d6795a285151.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/packagedata.py')
-rw-r--r-- | meta/lib/oe/packagedata.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index efa600ddcd..162ff60d72 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py | |||
@@ -340,4 +340,12 @@ fi | |||
340 | and not bb.data.inherits_class('packagegroup', d): | 340 | and not bb.data.inherits_class('packagegroup', d): |
341 | write_extra_runtime_pkgs(global_variants, packages, pkgdatadir) | 341 | write_extra_runtime_pkgs(global_variants, packages, pkgdatadir) |
342 | 342 | ||
343 | 343 | def mapping_rename_hook(d): | |
344 | """ | ||
345 | Rewrite variables to account for package renaming in things | ||
346 | like debian.bbclass or manual PKG variable name changes | ||
347 | """ | ||
348 | pkg = d.getVar("PKG") | ||
349 | oe.packagedata.runtime_mapping_rename("RDEPENDS", pkg, d) | ||
350 | oe.packagedata.runtime_mapping_rename("RRECOMMENDS", pkg, d) | ||
351 | oe.packagedata.runtime_mapping_rename("RSUGGESTS", pkg, d) | ||