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/classes-global/package.bbclass | |
| 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/classes-global/package.bbclass')
| -rw-r--r-- | meta/classes-global/package.bbclass | 13 |
1 files changed, 0 insertions, 13 deletions
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 () { | |||
| 607 | } | 607 | } |
| 608 | addtask do_packagedata_setscene | 608 | addtask do_packagedata_setscene |
| 609 | 609 | ||
| 610 | # | ||
| 611 | # Helper functions for the package writing classes | ||
| 612 | # | ||
| 613 | |||
| 614 | def mapping_rename_hook(d): | ||
| 615 | """ | ||
| 616 | Rewrite variables to account for package renaming in things | ||
| 617 | like debian.bbclass or manual PKG variable name changes | ||
| 618 | """ | ||
| 619 | pkg = d.getVar("PKG") | ||
| 620 | oe.packagedata.runtime_mapping_rename("RDEPENDS", pkg, d) | ||
| 621 | oe.packagedata.runtime_mapping_rename("RRECOMMENDS", pkg, d) | ||
| 622 | oe.packagedata.runtime_mapping_rename("RSUGGESTS", pkg, d) | ||
