summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/documentation.conf2
-rw-r--r--meta/lib/oe/package.py14
2 files changed, 10 insertions, 6 deletions
diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf
index 90d8e82932..b0591881ba 100644
--- a/meta/conf/documentation.conf
+++ b/meta/conf/documentation.conf
@@ -271,7 +271,7 @@ LICENSE_PATH[doc] = "Path to additional licenses used during the build."
271LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration." 271LINUX_KERNEL_TYPE[doc] = "Defines the kernel type to be used in assembling the configuration."
272LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe." 272LINUX_VERSION[doc] = "The Linux version from kernel.org on which the Linux kernel image being built using the OpenEmbedded build system is based. You define this variable in the kernel recipe."
273LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe." 273LINUX_VERSION_EXTENSION[doc] = "A string extension compiled into the version string of the Linux kernel built with the OpenEmbedded build system. You define this variable in the kernel recipe."
274LOCALE_PATHS[doc] = "Whitespace separated list of paths that are scanned to construct locale packages. The list already contains ${datadir}/locale by default." 274LOCALE_PATHS[doc] = "Whitespace separated list of paths that are scanned to construct locale packages. The list already contains ${datadir}/locale by default. Note that all subdirectories in these paths are assumed to be locales."
275LOCALE_UTF8_IS_DEFAULT[doc] = "If set, locale names are renamed such that those lacking an explicit encoding (e.g. en_US) will always be UTF-8, and non-UTF-8 encodings are renamed to, e.g., en_US.ISO-8859-1. Otherwise, the encoding is specified by glibc's SUPPORTED file. Not supported for precompiled locales." 275LOCALE_UTF8_IS_DEFAULT[doc] = "If set, locale names are renamed such that those lacking an explicit encoding (e.g. en_US) will always be UTF-8, and non-UTF-8 encodings are renamed to, e.g., en_US.ISO-8859-1. Otherwise, the encoding is specified by glibc's SUPPORTED file. Not supported for precompiled locales."
276LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log" 276LOG_DIR[doc] = "Specifies the directory to which the OpenEmbedded build system writes overall log files. The default directory is ${TMPDIR}/log"
277 277
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index d1738d3b61..587810bdaf 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -652,11 +652,15 @@ def split_locales(d):
652 locales = set() 652 locales = set()
653 for localepath in (d.getVar('LOCALE_PATHS') or "").split(): 653 for localepath in (d.getVar('LOCALE_PATHS') or "").split():
654 localedir = dvar + localepath 654 localedir = dvar + localepath
655 if cpath.isdir(localedir): 655 if not cpath.isdir(localedir):
656 locales.update(os.listdir(localedir)) 656 bb.debug(1, 'No locale files in %s' % localepath)
657 localepaths.append(localepath) 657 continue
658 else: 658
659 bb.debug(1, "No locale files in %s" % localepath) 659 localepaths.append(localepath)
660 with os.scandir(localedir) as it:
661 for entry in it:
662 if entry.is_dir():
663 locales.add(entry.name)
660 664
661 if len(locales) == 0: 665 if len(locales) == 0:
662 bb.debug(1, "No locale files in this package") 666 bb.debug(1, "No locale files in this package")