diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-12 17:12:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-13 16:11:27 +0000 |
commit | 74e79e732a5f0c511d06be6b3b55a44495a18445 (patch) | |
tree | 280e5d12bae8039cca953e5a2f0f30ab05fcb181 /meta/recipes-extended/packagegroups | |
parent | 4e99a5fa9cf87d9a2a31b5d02e44b868b145b558 (diff) | |
download | poky-74e79e732a5f0c511d06be6b3b55a44495a18445.tar.gz |
packagegroup-core-full-cmdline: Drop compatibility mappings
The task-core namespace was dropped years ago and we've had the compatibility
mappings for a long time. We should no longer need them as everyone should long
since have adapted.
(From OE-Core rev: 5b3606d3567eb87a9685e5de3437603b1a2d3569)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/packagegroups')
-rw-r--r-- | meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb index c0647b2188..b66617fbf6 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb | |||
@@ -18,41 +18,6 @@ PACKAGES = "\ | |||
18 | packagegroup-core-full-cmdline-sys-services \ | 18 | packagegroup-core-full-cmdline-sys-services \ |
19 | " | 19 | " |
20 | 20 | ||
21 | python __anonymous () { | ||
22 | # For backwards compatibility after rename | ||
23 | namemap = {} | ||
24 | namemap["packagegroup-core-full-cmdline"] = "packagegroup-core-basic" | ||
25 | namemap["packagegroup-core-full-cmdline-utils"] = "packagegroup-core-basic-utils" | ||
26 | namemap["packagegroup-core-full-cmdline-extended"] = "packagegroup-core-basic-extended" | ||
27 | namemap["packagegroup-core-full-cmdline-dev-utils"] = "packagegroup-core-dev-utils" | ||
28 | namemap["packagegroup-core-full-cmdline-multiuser"] = "packagegroup-core-multiuser" | ||
29 | namemap["packagegroup-core-full-cmdline-initscripts"] = "packagegroup-core-initscripts" | ||
30 | namemap["packagegroup-core-full-cmdline-sys-services"] = "packagegroup-core-sys-services" | ||
31 | |||
32 | packages = d.getVar("PACKAGES").split() | ||
33 | mlprefix = d.getVar("MLPREFIX") | ||
34 | for pkg in packages: | ||
35 | pkg2 = pkg[len(mlprefix):] | ||
36 | if pkg.endswith('-dev'): | ||
37 | mapped = namemap.get(pkg2[:-4], None) | ||
38 | if mapped: | ||
39 | mapped += '-dev' | ||
40 | elif pkg.endswith('-dbg'): | ||
41 | mapped = namemap.get(pkg2[:-4], None) | ||
42 | if mapped: | ||
43 | mapped += '-dbg' | ||
44 | else: | ||
45 | mapped = namemap.get(pkg2, None) | ||
46 | |||
47 | if mapped: | ||
48 | oldtaskname = mapped.replace("packagegroup-core", "task-core") | ||
49 | mapstr = " %s%s %s%s" % (mlprefix, mapped, mlprefix, oldtaskname) | ||
50 | d.appendVar("RPROVIDES:%s" % pkg, mapstr) | ||
51 | d.appendVar("RREPLACES:%s" % pkg, mapstr) | ||
52 | d.appendVar("RCONFLICTS:%s" % pkg, mapstr) | ||
53 | } | ||
54 | |||
55 | |||
56 | RDEPENDS:packagegroup-core-full-cmdline = "\ | 21 | RDEPENDS:packagegroup-core-full-cmdline = "\ |
57 | packagegroup-core-full-cmdline-utils \ | 22 | packagegroup-core-full-cmdline-utils \ |
58 | packagegroup-core-full-cmdline-extended \ | 23 | packagegroup-core-full-cmdline-extended \ |