Hello community, here is the log from the commit of package yast2-country for openSUSE:Factory checked in at 2018-11-12 09:36:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-country (Old) and /work/SRC/openSUSE:Factory/.yast2-country.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-country" Mon Nov 12 09:36:06 2018 rev:195 rq:647525 version:4.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-country/yast2-country.changes 2018-11-01 19:07:09.918025205 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-country.new/yast2-country.changes 2018-11-12 09:36:08.441644823 +0100 @@ -1,0 +2,6 @@ +Fri Nov 9 07:52:29 UTC 2018 - jsr...@suse.cz + +- provide better API for getting keyboard map info (fate#325748) +- 4.1.1 + +------------------------------------------------------------------- Old: ---- yast2-country-4.1.0.tar.bz2 New: ---- yast2-country-4.1.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-country.spec ++++++ --- /var/tmp/diff_new_pack.5PBZn2/_old 2018-11-12 09:36:08.917644135 +0100 +++ /var/tmp/diff_new_pack.5PBZn2/_new 2018-11-12 09:36:08.917644135 +0100 @@ -17,7 +17,7 @@ Name: yast2-country -Version: 4.1.0 +Version: 4.1.1 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-country-4.1.0.tar.bz2 -> yast2-country-4.1.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.1.0/keyboard/src/modules/Keyboard.rb new/yast2-country-4.1.1/keyboard/src/modules/Keyboard.rb --- old/yast2-country-4.1.0/keyboard/src/modules/Keyboard.rb 2018-10-29 10:49:02.000000000 +0100 +++ new/yast2-country-4.1.1/keyboard/src/modules/Keyboard.rb 2018-11-09 09:24:51.000000000 +0100 @@ -434,8 +434,27 @@ Builtins.union(base_lang2keyboard, Language.GetLang2KeyboardMap(true)) end + # Get the default key map for selected language + # + # @param sys_language [String] the locale, e.g. cs_CZ + # + # @return [String] the expected key map, e.g. cz-us-qwertz.map.gz + # + def GetKeymapForLanguage(sys_language) + keyboard = GetKeyboardForLanguage(sys_language, "us") + keyboards = get_reduced_keyboard_db + log.debug("reduced kbd db: #{keyboards}") + # Get the entry from the reduced local map for the given language. + # + kbd_descr = keyboards[keyboard] || [] + log.info( "Description for keyboard #{keyboard.inspect}: #{kbd_descr.inspect}") + if !kbd_descr.empty? # keyboard found + return Ops.get_string(kbd_descr, [1, "ncurses"], "us.map.gz") + end + "us.map.gz" + end # GetKeyboardForLanguage() # @@ -1320,6 +1339,7 @@ publish :function => :SetKeyboardForLanguage, :type => "void (string)" publish :function => :SetKeyboardForLang, :type => "void (string)" publish :function => :SetKeyboardDefault, :type => "void ()" + publish :function => :GetKeymapForLanguage, :type => "string(string)" publish :function => :Import, :type => "boolean (map, ...)" publish :function => :Export, :type => "map ()" publish :function => :Summary, :type => "string ()" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.1.0/package/yast2-country.changes new/yast2-country-4.1.1/package/yast2-country.changes --- old/yast2-country-4.1.0/package/yast2-country.changes 2018-10-29 10:49:02.000000000 +0100 +++ new/yast2-country-4.1.1/package/yast2-country.changes 2018-11-09 09:24:51.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Nov 9 07:52:29 UTC 2018 - jsr...@suse.cz + +- provide better API for getting keyboard map info (fate#325748) +- 4.1.1 + +------------------------------------------------------------------- Fri Oct 26 13:21:47 UTC 2018 - jreidin...@suse.com - Console: Use empty string instead of none for FONTMAP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.1.0/package/yast2-country.spec new/yast2-country-4.1.1/package/yast2-country.spec --- old/yast2-country-4.1.0/package/yast2-country.spec 2018-10-29 10:49:02.000000000 +0100 +++ new/yast2-country-4.1.1/package/yast2-country.spec 2018-11-09 09:24:51.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-country -Version: 4.1.0 +Version: 4.1.1 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build