[yast-commit] r58219 - in /trunk/country: ./ keyboard/src/ keyboard/src/modules/ language/src/ package/
Author: jsuchome Date: Thu Jul 30 15:44:02 2009 New Revision: 58219 URL: http://svn.opensuse.org/viewcvs/yast?rev=58219&view=rev Log: - removed functions working with xorg.conf (bnc#441404) - 2.18.14 Removed: trunk/country/keyboard/src/modules/XLibAPI.pm Modified: trunk/country/keyboard/src/keyboard.ycp trunk/country/keyboard/src/keyboard_auto.ycp trunk/country/keyboard/src/modules/Keyboard.ycp trunk/country/keyboard/src/modules/Makefile.am trunk/country/language/src/select_language.ycp trunk/country/package/yast2-country.changes trunk/country/yast2-country.spec.in Modified: trunk/country/keyboard/src/keyboard.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/keyboard/src/keyboard.ycp... ============================================================================== --- trunk/country/keyboard/src/keyboard.ycp (original) +++ trunk/country/keyboard/src/keyboard.ycp Thu Jul 30 15:44:02 2009 @@ -54,7 +54,7 @@ */ define boolean KeyboardWrite () { - Keyboard::Save (false); + Keyboard::Save (); Service::Restart ("kbd"); return true; } Modified: trunk/country/keyboard/src/keyboard_auto.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/keyboard/src/keyboard_aut... ============================================================================== --- trunk/country/keyboard/src/keyboard_auto.ycp (original) +++ trunk/country/keyboard/src/keyboard_auto.ycp Thu Jul 30 15:44:02 2009 @@ -57,7 +57,7 @@ ret = Keyboard::Export (); } else if (func == "Write") { - ret = Keyboard::Save (true); + ret = Keyboard::Save (); } /** * Return if configuration was changed Modified: trunk/country/keyboard/src/modules/Keyboard.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/keyboard/src/modules/Keyb... ============================================================================== --- trunk/country/keyboard/src/modules/Keyboard.ycp (original) +++ trunk/country/keyboard/src/modules/Keyboard.ycp Thu Jul 30 15:44:02 2009 @@ -87,7 +87,6 @@ import "Package"; import "ProductFeatures"; import "Stage"; - import "XLibAPI"; import "XVersion"; // ------------------------------------------------------------------------ @@ -479,9 +478,8 @@ return Arch::x11_setup_needed () && - ! (Linuxrc::serial_console() || Linuxrc::vnc() || Linuxrc::usessh()) && - ((Stage::initial () && !Linuxrc::text ()) || - Package::Installed ("yast2-x11")); + (Stage::initial () || Stage::firstboot ()) && + ! (Linuxrc::serial_console() || Linuxrc::vnc() || Linuxrc::usessh() || Linuxrc::text ()); } /** @@ -611,7 +609,9 @@ y2milestone ("current_kbd %1 model %2", current_kbd, kb_model); if (current_kbd == "") { - y2milestone("Restoring data failed"); + y2milestone("Restoring data failed, returning defaults"); + current_kbd = "english-us"; + kb_model = "pc104"; ret = false; } else @@ -816,41 +816,19 @@ if (Mode::config ()) return; - // We have three possible sources of information: + // We have these possible sources of information: // // probed data: - installation initial mode --> probing // sysconfig: - installation continue mode or normal mode - // XF86Config: - restoring from sysconfig failed and running system // - y2milestone ("Keyboard::Keyboard init:%1 update:%2", Stage::initial (), - Mode::update () ); + y2milestone ("initial :%1, update:%2", Stage::initial (), Mode::update ()); + boolean success = false; // If not in initial mode try to restore from sysconfig. if (!Stage::initial () || Mode::live_installation ()) { success = Restore(); - - // If this failed and we are in a running system try to restore from - // X11 Config. - if (!success && Mode::normal () && x11_setup_needed ()) - { - // Get the current layout from XF86Config and - // set keyboard module accordingly. - - string current_layout = XLibAPI::getXkbLayout (); - - y2milestone("keyboard layout YaST2: %1", current_layout ); - - // Set the keyboard variables to this value if possible. - if ( current_layout != "" ) - { - SetKeyboard (current_layout); - y2milestone ("Restored data (XF86Config) for keyboard: <%1>", - current_kbd); - success = true; - } - } } else { @@ -858,11 +836,10 @@ } // In initial mode or if restoring failed do probe. - if(!success || (Stage::initial () && !Mode::live_installation ())) + if (!success) { // On module entry probe the hardware and set all those data // needed for public access. - // Probe(); } @@ -890,44 +867,10 @@ /** - * Updates the X11 keyboard settings (using SaX library) - * @return boolean - success - */ - -global define boolean xf86_update() { - - y2milestone ("Storing current keyboard settings into X11 config file..."); - - map xkbctrl2SaX = $[ - "ModeShift" : "SaX::XKB_MAP_MODESHIFT", - "Compose" : "SaX::XKB_MAP_COMPOSE", - "ModeLock" : "SaX::XKB_MAP_MODELOCK", - "ScrollLock" : "SaX::XKB_MAP_SCROLLLOCK", - "Meta" : "SaX::XKB_MAP_META", - "Control" : "SaX::XKB_MAP_CONTROL" - ]; - - XLibAPI::setXkbLayout (XkbLayout); - XLibAPI::setXkbModel (XkbModel); - XLibAPI::setXkbVariant (XkbLayout, XkbVariant); - XLibAPI::setXkbMappings ($[ - "SaX::XKB_LEFT_ALT" : xkbctrl2SaX[LeftAlt]:LeftAlt, - "SaX::XKB_RIGHT_ALT" : xkbctrl2SaX[RightAlt]:RightAlt, - "SaX::XKB_SCROLL_LOCK" : xkbctrl2SaX[ScrollLock]:ScrollLock, - "SaX::XKB_RIGHT_CTL" : xkbctrl2SaX[RightCtl]:RightCtl - ]); - if (XkbOptions != "") - XLibAPI::setXkbOptions (splitstring (XkbOptions, ",")); - return XLibAPI::Write (); -} - - -/** * Save the current data into a file to be read after a reboot. * - * @param boolean update_x11: true if X11 config should be updated */ -global define void Save (boolean update_x11) { +global define void Save () { if (Mode::update ()) { @@ -1057,12 +1000,6 @@ y2milestone("NOT marking keyboard as configured (no unique_key)"); } - // Adapt the X11 config file content to match the current settings - if (x11_setup_needed() && update_x11 &&(Mode::normal() || Stage::reprobe())) - { - xf86_update(); - } - y2milestone("Saved data for keyboard: <%1>", current_kbd ); return; Modified: trunk/country/keyboard/src/modules/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/keyboard/src/modules/Make... ============================================================================== --- trunk/country/keyboard/src/modules/Makefile.am (original) +++ trunk/country/keyboard/src/modules/Makefile.am Thu Jul 30 15:44:02 2009 @@ -1,8 +1,7 @@ # Makefile.am for country/keyboard/src/modules module_DATA = \ - Keyboard.ycp \ - XLibAPI.pm + Keyboard.ycp EXTRA_DIST = $(module_DATA) Modified: trunk/country/language/src/select_language.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/language/src/select_langu... ============================================================================== --- trunk/country/language/src/select_language.ycp (original) +++ trunk/country/language/src/select_language.ycp Thu Jul 30 15:44:02 2009 @@ -598,7 +598,7 @@ { // save settings (rest is saved in LanguageWrite) if (kbd_adapt) - Keyboard::Save (true); + Keyboard::Save (); if (tmz_adapt) Timezone::Save (); } Modified: trunk/country/package/yast2-country.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/package/yast2-country.cha... ============================================================================== --- trunk/country/package/yast2-country.changes (original) +++ trunk/country/package/yast2-country.changes Thu Jul 30 15:44:02 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Jul 30 15:34:27 CEST 2009 - jsuchome@suse.cz + +- removed functions working with xorg.conf (bnc#441404) +- 2.18.14 + +------------------------------------------------------------------- Mon Jul 20 16:51:26 CEST 2009 - jsrain@suse.cz - removed the circular build dependency on yast2-packager Modified: trunk/country/yast2-country.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/yast2-country.spec.in?rev... ============================================================================== --- trunk/country/yast2-country.spec.in (original) +++ trunk/country/yast2-country.spec.in Thu Jul 30 15:44:02 2009 @@ -76,7 +76,6 @@ @moduledir@/Console.y* @moduledir@/Keyboard.y* @moduledir@/Timezone.y* -@moduledir@/XLibAPI.pm %dir @moduledir@/YaPI @moduledir@/YaPI/TIME.pm @moduledir@/YaPI/LANGUAGE.pm -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn.opensuse.org