From e0f9491462b23f8bbc0c31c84784a9e30e691022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Mon, 10 Jun 2024 09:50:02 +0200 Subject: [PATCH] Fixed profile variable settings for preferences It's allowed to have multiple preferences sections. If those sections provides the same value multiple times, e.g keytable, the last one in the row will win. The setup of the variables in .profile environment file for the preferences elements is not following this rule and used the first section not the last. This commit fixes the profile variables to match the actual setup and Fixes #2560 --- kiwi/system/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwi/system/profile.py b/kiwi/system/profile.py index 0ee5f7ed..d5c5ef5f 100644 --- a/kiwi/system/profile.py +++ b/kiwi/system/profile.py @@ -244,7 +244,7 @@ class Profile: # kiwi_language # kiwi_splash_theme # kiwi_loader_theme - for preferences in self.xml_state.get_preferences_sections(): + for preferences in reversed(self.xml_state.get_preferences_sections()): if 'kiwi_iversion' not in self.dot_profile: self.dot_profile['kiwi_iversion'] = \ self._text(preferences.get_version())