diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-09-04 19:05:19 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-05 17:37:14 +0100 |
| commit | 38e71739d97764295713f20e87795a1c43c57e41 (patch) | |
| tree | cd4a1db0922f6792592d2d95256f179625b4c46a | |
| parent | 5084e47851fe9e1b3cabfb1dfe96f754975ce740 (diff) | |
| download | poky-38e71739d97764295713f20e87795a1c43c57e41.tar.gz | |
packagegroup-(base|core-basic): add RREPLACES/RCONFLICTS
These are needed to support upgrading from task-* to packagegroup-*
within existing target images at runtime.
Note: these settings will very likely be moved to a separate inc file
at some point in the future.
(From OE-Core rev: 1b07bd4c6b1ff70267b97f94b25026a8f8ad3314)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-base.bb | 10 | ||||
| -rw-r--r-- | meta/recipes-extended/packagegroups/packagegroup-core-basic.bb | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb index 217830801d..347a7e15d0 100644 --- a/meta/recipes-core/packagegroups/packagegroup-base.bb +++ b/meta/recipes-core/packagegroups/packagegroup-base.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | DESCRIPTION = "Merge machine and distro options to create a basic machine task/package" | 1 | DESCRIPTION = "Merge machine and distro options to create a basic machine task/package" |
| 2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
| 3 | PR = "r75" | 3 | PR = "r76" |
| 4 | 4 | ||
| 5 | inherit packagegroup | 5 | inherit packagegroup |
| 6 | 6 | ||
| @@ -117,12 +117,10 @@ python __anonymous () { | |||
| 117 | 117 | ||
| 118 | # For backwards compatibility after rename | 118 | # For backwards compatibility after rename |
| 119 | packages = d.getVar("PACKAGES", True).split() | 119 | packages = d.getVar("PACKAGES", True).split() |
| 120 | packages.remove("packagegroup-distro-base") | ||
| 121 | packages.remove("packagegroup-machine-base") | ||
| 122 | for pkg in packages: | 120 | for pkg in packages: |
| 123 | d.appendVar("RPROVIDES_%s" % pkg, pkg.replace("packagegroup-base", "task-base")) | 121 | d.appendVar("RPROVIDES_%s" % pkg, pkg.replace("packagegroup-", "task-")) |
| 124 | d.appendVar("RPROVIDES_packagegroup-distro-base", "task-distro-base") | 122 | d.appendVar("RREPLACES_%s" % pkg, pkg.replace("packagegroup-", "task-")) |
| 125 | d.appendVar("RPROVIDES_packagegroup-machine-base", "task-machine-base") | 123 | d.appendVar("RCONFLICTS_%s" % pkg, pkg.replace("packagegroup-", "task-")) |
| 126 | } | 124 | } |
| 127 | 125 | ||
| 128 | # | 126 | # |
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb b/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb index 30b66c5b4c..d3eeeedc93 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | DESCRIPTION = "Create Basic Image Tasks" | 5 | DESCRIPTION = "Create Basic Image Tasks" |
| 6 | PR = "r4" | 6 | PR = "r5" |
| 7 | LICENSE = "MIT" | 7 | LICENSE = "MIT" |
| 8 | 8 | ||
| 9 | inherit packagegroup | 9 | inherit packagegroup |
| @@ -24,6 +24,8 @@ python __anonymous () { | |||
| 24 | packages = d.getVar("PACKAGES", True).split() | 24 | packages = d.getVar("PACKAGES", True).split() |
| 25 | for pkg in packages: | 25 | for pkg in packages: |
| 26 | d.appendVar("RPROVIDES_%s" % pkg, pkg.replace("packagegroup-core", "task-core")) | 26 | d.appendVar("RPROVIDES_%s" % pkg, pkg.replace("packagegroup-core", "task-core")) |
| 27 | d.appendVar("RREPLACES_%s" % pkg, pkg.replace("packagegroup-core", "task-core")) | ||
| 28 | d.appendVar("RCONFLICTS_%s" % pkg, pkg.replace("packagegroup-core", "task-core")) | ||
| 27 | } | 29 | } |
| 28 | 30 | ||
| 29 | 31 | ||
