summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0a954ef97f..100f465d9c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -44,6 +44,8 @@ inherit prserv
44PKGD = "${WORKDIR}/package" 44PKGD = "${WORKDIR}/package"
45PKGDEST = "${WORKDIR}/packages-split" 45PKGDEST = "${WORKDIR}/packages-split"
46 46
47LOCALE_SECTION ?= ''
48
47# rpm is used for the per-file dependency identification 49# rpm is used for the per-file dependency identification
48PACKAGE_DEPENDS += "rpm-native" 50PACKAGE_DEPENDS += "rpm-native"
49 51
@@ -401,6 +403,7 @@ python package_do_split_locales() {
401 403
402 summary = bb.data.getVar('SUMMARY', d, True) or pn 404 summary = bb.data.getVar('SUMMARY', d, True) or pn
403 description = bb.data.getVar('DESCRIPTION', d, True) or "" 405 description = bb.data.getVar('DESCRIPTION', d, True) or ""
406 locale_section = bb.data.getVar('LOCALE_SECTION', d, True)
404 for l in locales: 407 for l in locales:
405 ln = legitimize_package_name(l) 408 ln = legitimize_package_name(l)
406 pkg = pn + '-locale-' + ln 409 pkg = pn + '-locale-' + ln
@@ -410,6 +413,8 @@ python package_do_split_locales() {
410 bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d) 413 bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d)
411 bb.data.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l), d) 414 bb.data.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l), d)
412 bb.data.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l), d) 415 bb.data.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l), d)
416 if locale_section:
417 bb.data.setVar('SECTION_' + pkg, locale_section, d)
413 418
414 bb.data.setVar('PACKAGES', ' '.join(packages), d) 419 bb.data.setVar('PACKAGES', ' '.join(packages), d)
415 420