summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-27 10:50:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-27 14:48:10 +0100
commitfc4b138948656d482603b80f8c8e86fdbb185df4 (patch)
tree4b8185042f0256b51a52acf0c1ec03e663af200e /meta/classes
parent9360fc318cec5c873b17f59b817dd6312c81ee27 (diff)
downloadopenembedded-core-fc4b138948656d482603b80f8c8e86fdbb185df4.tar.gz
openembedded-core-fc4b138948656d482603b80f8c8e86fdbb185df4.tar.bz2
openembedded-core-fc4b138948656d482603b80f8c8e86fdbb185df4.zip
package.bbclass/eglibc-locale: Ensure the correct PN is used for locale packages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index efb03f89bf..f55b3e0a65 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -371,6 +371,8 @@ python package_get_auto_pr() {
d.setVar('PRAUTO',str(auto_pr))
}
+LOCALEBASEPN ??= "${PN}"
+
python package_do_split_locales() {
if (d.getVar('PACKAGE_NO_LOCALE', True) == '1'):
bb.debug(1, "package requested not splitting locales")
@@ -384,7 +386,7 @@ python package_do_split_locales() {
return
dvar = d.getVar('PKGD', True)
- pn = d.getVar('PN', True)
+ pn = d.getVar('LOCALEBASEPN', True)
if pn + '-locale' in packages:
packages.remove(pn + '-locale')