From f8265bb60766f2adfbbd65e5caf28cb671c9d344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Fri, 8 Feb 2019 16:56:56 +0100 Subject: [PATCH] Added new preferences subsection In the preferences section the following optional subsection can be configured: true|false If set to true the default locales POSIX, C, and C.UTF-8 are applied as rpm install_lang macro. If the locale section is configured in addition the list is extended by that information too --- kiwi/schema/kiwi.rnc | 22 ++++++++++++++++++++ kiwi/schema/kiwi.rng | 30 +++++++++++++++++++++++++++ kiwi/system/prepare.py | 6 +++--- kiwi/xml_parse.py | 25 ++++++++++++++++++++++- kiwi/xml_state.py | 35 ++++++++++++++++++++++++++++++++ test/data/example_config.xml | 1 + test/unit/system_prepare_test.py | 6 ++++-- test/unit/xml_state_test.py | 9 ++++++++ 8 files changed, 128 insertions(+), 6 deletions(-) diff --git a/kiwi/schema/kiwi.rnc b/kiwi/schema/kiwi.rnc index f8f985c8..1cd62a86 100644 --- a/kiwi/schema/kiwi.rnc +++ b/kiwi/schema/kiwi.rnc @@ -364,6 +364,27 @@ div { # locale } } + +#========================================== +# common element +# +div { + k.rpm-locale-filtering.content = xsd:boolean + k.rpm-locale-filtering.attlist = empty + k.rpm-locale-filtering = + # locale-filtering sets the install_lang macro for rpm based + # installations to the configured locale list. This results + # in language specific files to become filtered out by rpm + # if they don't match the configured list. Please note it + # depends on the package design if the install_lang macro + # contents apply to the package or not. + element rpm-locale-filtering { + k.rpm-locale-filtering.attlist, + k.rpm-locale-filtering.content + } +} + + #========================================== # common element # @@ -2638,6 +2659,7 @@ div { k.keytable? & k.locale? & k.packagemanager? & + k.rpm-locale-filtering? & k.rpm-check-signatures? & k.rpm-excludedocs? & k.showlicense* & diff --git a/kiwi/schema/kiwi.rng b/kiwi/schema/kiwi.rng index 98341bcc..32f15cf8 100644 --- a/kiwi/schema/kiwi.rng +++ b/kiwi/schema/kiwi.rng @@ -609,6 +609,33 @@ specifies the where to find the boot kernel + +
+ + + + + + + + + + + + + +