diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-05-30 10:12:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-02 15:59:07 +0100 |
commit | af0136ee4e5436d840d53a4cae856f88dbb4b660 (patch) | |
tree | 80d05a9673079ef2a34a052e712ff1fe81cd1ed3 /meta/classes | |
parent | 42071227f6f54055d8ac44126ab1d95f83f5b264 (diff) | |
download | poky-af0136ee4e5436d840d53a4cae856f88dbb4b660.tar.gz |
classes/create-spdx-2.2: Respect PKG for providers
If a package renames itself using PKG, the new name should be respected
as a name that the recipe provides.
(From OE-Core rev: 871f48126180bf30c001c6b97268cee1853dbda2)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/create-spdx-2.2.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass index 6ec0c1465e..f12e155f6b 100644 --- a/meta/classes/create-spdx-2.2.bbclass +++ b/meta/classes/create-spdx-2.2.bbclass | |||
@@ -688,6 +688,10 @@ def collect_package_providers(d): | |||
688 | rprovides = set(n for n, _ in bb.utils.explode_dep_versions2(pkg_data.get("RPROVIDES", "")).items()) | 688 | rprovides = set(n for n, _ in bb.utils.explode_dep_versions2(pkg_data.get("RPROVIDES", "")).items()) |
689 | rprovides.add(pkg) | 689 | rprovides.add(pkg) |
690 | 690 | ||
691 | if "PKG" in pkg_data: | ||
692 | pkg = pkg_data["PKG"] | ||
693 | rprovides.add(pkg) | ||
694 | |||
691 | for r in rprovides: | 695 | for r in rprovides: |
692 | providers[r] = (pkg, dep_hashfn) | 696 | providers[r] = (pkg, dep_hashfn) |
693 | 697 | ||