Author: jsuchome Date: Fri Mar 4 14:27:05 2011 New Revision: 63510 URL: http://svn.opensuse.org/viewcvs/yast?rev=63510&view=rev Log: - strip UTF-8 ending from locale string (bnc#675101) - allow live iso creation only for x86/x86_64 (bnc#675101) - 2.17.38.1 Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes branches/SuSE-Code-11-SP1-Branch/product-creator/src/Kiwi.ycp branches/SuSE-Code-11-SP1-Branch/product-creator/src/data/kiwi_templates/iso/config.xml branches/SuSE-Code-11-SP1-Branch/product-creator/src/kiwi_dialogs.ycp Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/produc... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION Fri Mar 4 14:27:05 2011 @@ -1 +1 @@ -2.17.38 +2.17.38.1 Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/produc... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes Fri Mar 4 14:27:05 2011 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri Mar 4 13:58:08 CET 2011 - jsuchome@suse.cz + +- strip UTF-8 ending from locale string (bnc#675101) +- allow live iso creation only for x86/x86_64 (bnc#675101) +- 2.17.38.1 + +------------------------------------------------------------------- Tue Nov 9 14:19:59 CET 2010 - jsuchome@suse.cz - added option to build i586 images on i686 system (bnc#644895) Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/src/Kiwi.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/produc... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/src/Kiwi.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/src/Kiwi.ycp Fri Mar 4 14:27:05 2011 @@ -276,6 +276,14 @@ ret["preferences",0,"defaultdestination",0,content_key]:""; } + if (haskey (ret["preferences",0]:$[], "locale")) + { + // remove .UTF-8 endings from locale (bnc#675101) + string lang = get_preferences (ret, "locale", ""); + list<string> split = splitstring (lang, "."); + ret = save_preferences (ret, "locale", split[0]:lang); + } + return ret; } Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/src/data/kiwi_templates/iso/config.xml URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/produc... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/src/data/kiwi_templates/iso/config.xml (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/src/data/kiwi_templates/iso/config.xml Fri Mar 4 14:27:05 2011 @@ -16,7 +16,7 @@ <packagemanager>zypper</packagemanager> <rpm-check-signatures>False</rpm-check-signatures> <rpm-force>False</rpm-force> - <locale>en_US.UTF-8</locale> + <locale>en_US</locale> </preferences> <users group="users"> <user name="linux" pwd="" home="/home/linux" realname="Live-CD User"/> Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/src/kiwi_dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/produc... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/src/kiwi_dialogs.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/src/kiwi_dialogs.ycp Fri Mar 4 14:27:05 2011 @@ -529,6 +529,14 @@ */ define void StorePreferences (string key, map event) { string val = (string) UI::QueryWidget (`id(key), `Value); + + // split .UTF-8 endings from locale (bnc#675101) + if (key == "locale") + { + list<string> split = splitstring (val, "."); + val = split[0]:val; + UI::ChangeWidget (`id (key), `Value, val); + } if (val == "" && haskey (KiwiConfig["preferences",0]:$[], key)) { KiwiConfig["preferences",0] = @@ -2125,14 +2133,22 @@ list basic_type_items = [ // combo box item - `item (`id ("iso"), _("Live ISO Image"), kiwi_task == "iso"), - // combo box item `item (`id ("xen"), _("Xen Image"), kiwi_task == "xen"), // combo box item `item (`id ("usb"), _("USB Stick Image"), kiwi_task == "usb"), // combo box item `item (`id ("vmx"), _("Virtual Disk Image"), kiwi_task == "vmx") ]; + + // build Live iso only for x86_64 and i386 (bnc#675101) + if (Arch::architecture () == "x86_64" || ProductCreator::GetArch () == "i386") + { + basic_type_items = prepend (basic_type_items, + // combo box item + `item (`id ("iso"), _("Live ISO Image"), kiwi_task == "iso") + ); + } + map task2label = $[ // combo box item "pxe" : _("Network Boot Image"), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org