]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm.bbclass: respect package overrides for the main package
authorMichael Ho <Michael.Ho@bmw.de>
Mon, 25 May 2020 07:45:49 +0000 (09:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 May 2020 21:25:27 +0000 (22:25 +0100)
commitb438a90fa4644dd3e5355f82730257ef579ceda9
tree396d44e4df03c31939f9fd6e0ddf19aef49c61ef
parentb244c4f3427cd07376d4b8f7d27e38735bcc90e7
package_rpm.bbclass: respect package overrides for the main package

Apply ${PN} to OVERRIDES when determining the base package spec variables.
Without this, there is a mismatch in behaviour where overrides for the base
package have no effect while overrides for subpackages do. The subpackages
should not be affected by this override as they apply their own package
overrides and will by default fetch the base variables and apply them in
the spec file.

This makes the behaviour for package overrides match the implementation
in package_deb.bbclass and package_ipk.bbclass.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass