summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e8d7aefd86..71c6179477 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -453,13 +453,12 @@ python package_do_split_locales() {
453 description = d.getVar('DESCRIPTION', True) or "" 453 description = d.getVar('DESCRIPTION', True) or ""
454 locale_section = d.getVar('LOCALE_SECTION', True) 454 locale_section = d.getVar('LOCALE_SECTION', True)
455 mlprefix = d.getVar('MLPREFIX', True) or "" 455 mlprefix = d.getVar('MLPREFIX', True) or ""
456 pndep = base_contains('PACKAGES', pn, '%s ' % pn, '', d)
457 for l in sorted(locales): 456 for l in sorted(locales):
458 ln = legitimize_package_name(l) 457 ln = legitimize_package_name(l)
459 pkg = pn + '-locale-' + ln 458 pkg = pn + '-locale-' + ln
460 packages.append(pkg) 459 packages.append(pkg)
461 d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l)) 460 d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l))
462 d.setVar('RRECOMMENDS_' + pkg, '%s%svirtual-locale-%s' % (pndep, mlprefix, ln)) 461 d.setVar('RRECOMMENDS_' + pkg, '%svirtual-locale-%s' % (mlprefix, ln))
463 d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln)) 462 d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
464 d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l)) 463 d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l))
465 d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l)) 464 d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))