Summary: | l10n.eclass: Locale can end up being both disabled and enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markos Chandras (RETIRED) <hwoarang> |
Component: | Eclasses | Assignee: | Ulrich Müller <ulm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | pesa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=548330 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 496508 |
Description
Markos Chandras (RETIRED)
2015-04-26 10:38:24 UTC
The logic should be: there is a list of PLOCALES; if none of them are enabled, we enable the one in PLOCALE_BACKUP, because we must have at least one enabled locale. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89b97dce78f2fb9a4ed646c7110f06f36cb0346a commit 89b97dce78f2fb9a4ed646c7110f06f36cb0346a Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2018-01-12 21:31:04 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-01-19 09:15:30 +0000 l10n.eclass: Disabled locales are the complement of enabled ones. Disabled locales returned by l10n_get_locales() should be the complement of enabled locales: disabled = PLOCALES \ enabled. So far, in the case of the enabled set falling back to PLOCALE_BACKUP, the backup locale would end up being both enabled and disabled. Closes: https://bugs.gentoo.org/547790 eclass/l10n.eclass | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) |