summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-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() {
371 d.setVar('PRAUTO',str(auto_pr)) 371 d.setVar('PRAUTO',str(auto_pr))
372} 372}
373 373
374LOCALEBASEPN ??= "${PN}"
375
374python package_do_split_locales() { 376python package_do_split_locales() {
375 if (d.getVar('PACKAGE_NO_LOCALE', True) == '1'): 377 if (d.getVar('PACKAGE_NO_LOCALE', True) == '1'):
376 bb.debug(1, "package requested not splitting locales") 378 bb.debug(1, "package requested not splitting locales")
@@ -384,7 +386,7 @@ python package_do_split_locales() {
384 return 386 return
385 387
386 dvar = d.getVar('PKGD', True) 388 dvar = d.getVar('PKGD', True)
387 pn = d.getVar('PN', True) 389 pn = d.getVar('LOCALEBASEPN', True)
388 390
389 if pn + '-locale' in packages: 391 if pn + '-locale' in packages:
390 packages.remove(pn + '-locale') 392 packages.remove(pn + '-locale')