Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-country for openSUSE:Factory checked in at 2022-02-05 23:22:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-country (Old) and /work/SRC/openSUSE:Factory/.yast2-country.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-country" Sat Feb 5 23:22:55 2022 rev:229 rq:950442 version:4.4.11 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-country/yast2-country.changes 2022-01-25 17:36:38.714096680 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-country.new.1898/yast2-country.changes 2022-02-05 23:22:59.944000259 +0100 @@ -1,0 +2,19 @@ +Mon Jan 31 14:49:03 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Fixed passing multiple arguments to "localectl set-locale" + (bsc#1177863) +- 4.4.11 + +------------------------------------------------------------------- +Mon Jan 31 13:48:31 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Unify YaST module mocking in unit tests (related to bsc#1194784) +- 4.4.10 + +------------------------------------------------------------------- +Fri Jan 28 07:23:35 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- add glibc-locale dependency for testsuite (bsc#1195390) +- 4.4.9 + +------------------------------------------------------------------- Old: ---- yast2-country-4.4.8.tar.bz2 New: ---- yast2-country-4.4.11.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-country.spec ++++++ --- /var/tmp/diff_new_pack.BZWzPL/_old 2022-02-05 23:23:01.415990190 +0100 +++ /var/tmp/diff_new_pack.BZWzPL/_new 2022-02-05 23:23:01.419990163 +0100 @@ -17,7 +17,7 @@ Name: yast2-country -Version: 4.4.8 +Version: 4.4.11 Release: 0 Summary: YaST2 - Country Settings (Language, Keyboard, and Timezone) License: GPL-2.0-only @@ -30,12 +30,13 @@ BuildRequires: yast2-devtools >= 4.2.2 BuildRequires: yast2-perl-bindings # For tests +BuildRequires: glibc-locale BuildRequires: rubygem(%rb_default_ruby_abi:rspec) BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake) # Fix to bnc#891053 (proper reading of ".target.yast2" on chroots) BuildRequires: yast2-core >= 3.1.12 -# RSpec extensions for YaST -BuildRequires: yast2-ruby-bindings >= 3.1.26 +# yast/rspec/helpers.rb +BuildRequires: yast2-ruby-bindings >= 4.4.7 # Yast2::CommandLine readonly parameter BuildRequires: yast2 >= 4.2.57 # systemd-mini does not add the xkb generated map which is needed by ++++++ yast2-country-4.4.8.tar.bz2 -> yast2-country-4.4.11.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/console/test/console_test.rb new/yast2-country-4.4.11/console/test/console_test.rb --- old/yast2-country-4.4.8/console/test/console_test.rb 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/console/test/console_test.rb 2022-02-01 14:23:29.000000000 +0100 @@ -31,7 +31,8 @@ end it "returns the encoding" do - expect(Yast::Console.SelectFont(language)).to eq("ISO-8859-1") + # Leap uses ISO defaults, Tumbleweed UTF-8 + expect(Yast::Console.SelectFont(language)).to eq("ISO-8859-1").or eq("UTF-8") end context "when no console font is available" do @@ -41,7 +42,8 @@ end it "returns the encoding" do - expect(Yast::Console.SelectFont(language)).to eq("ISO-8859-1") + # Leap uses ISO defaults, Tumbleweed UTF-8 + expect(Yast::Console.SelectFont(language)).to eq("ISO-8859-1").or eq("UTF-8") end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/language/src/modules/Language.rb new/yast2-country-4.4.11/language/src/modules/Language.rb --- old/yast2-country-4.4.8/language/src/modules/Language.rb 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/language/src/modules/Language.rb 2022-02-01 14:23:29.000000000 +0100 @@ -1445,7 +1445,7 @@ else prepare_locale_settings(locale) - ["/usr/bin/localectl", "set-locale", localectl_args] + ["/usr/bin/localectl", "set-locale", *localectl_args] end end @@ -1497,9 +1497,9 @@ # Returns the locale settings as args for localectl # - # @return [String] a comma separated locale settings string; i.e, LANG=zh_HK,LC_MESAGES=zh_TW + # @return [Array<String>] a list of locale settings; e.g. ["LANG=zh_HK.UTF-8", "LC_MESAGES=zh_TW"] def localectl_args - @localed_conf.map { |k, v| "#{k}=#{v}" }.join(",") + @localed_conf.map { |k, v| "#{k}=#{v}" } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/language/test/Language_test.rb new/yast2-country-4.4.11/language/test/Language_test.rb --- old/yast2-country-4.4.8/language/test/Language_test.rb 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/language/test/Language_test.rb 2022-02-01 14:23:29.000000000 +0100 @@ -205,6 +205,17 @@ subject.Save end + + it "passes the localectl settings as separate arguments" do + expect(Yast::Execute).to receive(:locally!) do |args| + expect(args[0]).to match(/localectl/) + expect(args[1]).to eq("set-locale") + # the order does not matter + expect(args[2..3].sort).to eq(["LANG=zh_HK.UTF-8", "LC_MESSAGES=zh_TW"]) + end + + subject.Save + end end context "when LC_MESSAGES is zh_TW" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/language/test/widgets/language_selection_test.rb new/yast2-country-4.4.11/language/test/widgets/language_selection_test.rb --- old/yast2-country-4.4.8/language/test/widgets/language_selection_test.rb 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/language/test/widgets/language_selection_test.rb 2022-02-01 14:23:29.000000000 +0100 @@ -23,6 +23,7 @@ allow(Yast::Language).to receive(:GetLanguageItems) allow(Yast::Language).to receive(:GetLanguageItems) .with(:first_screen).and_return(LANGUAGE_ITEMS) + allow(Yast::WFM).to receive(:SetLanguage) end shared_examples "switch language" do |method| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/package/yast2-country.changes new/yast2-country-4.4.11/package/yast2-country.changes --- old/yast2-country-4.4.8/package/yast2-country.changes 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/package/yast2-country.changes 2022-02-01 14:23:29.000000000 +0100 @@ -1,4 +1,23 @@ ------------------------------------------------------------------- +Mon Jan 31 14:49:03 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Fixed passing multiple arguments to "localectl set-locale" + (bsc#1177863) +- 4.4.11 + +------------------------------------------------------------------- +Mon Jan 31 13:48:31 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Unify YaST module mocking in unit tests (related to bsc#1194784) +- 4.4.10 + +------------------------------------------------------------------- +Fri Jan 28 07:23:35 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- add glibc-locale dependency for testsuite (bsc#1195390) +- 4.4.9 + +------------------------------------------------------------------- Wed Jan 19 09:27:28 UTC 2022 - Martin Vidner <mvid...@suse.com> - Switch console keyboard layouts to match the X11 ones diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/package/yast2-country.spec new/yast2-country-4.4.11/package/yast2-country.spec --- old/yast2-country-4.4.8/package/yast2-country.spec 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/package/yast2-country.spec 2022-02-01 14:23:29.000000000 +0100 @@ -16,7 +16,7 @@ # Name: yast2-country -Version: 4.4.8 +Version: 4.4.11 Release: 0 Summary: YaST2 - Country Settings (Language, Keyboard, and Timezone) License: GPL-2.0-only @@ -29,12 +29,13 @@ BuildRequires: yast2-devtools >= 4.2.2 BuildRequires: yast2-perl-bindings # For tests +BuildRequires: glibc-locale BuildRequires: rubygem(%rb_default_ruby_abi:rspec) BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake) # Fix to bnc#891053 (proper reading of ".target.yast2" on chroots) BuildRequires: yast2-core >= 3.1.12 -# RSpec extensions for YaST -BuildRequires: yast2-ruby-bindings >= 3.1.26 +# yast/rspec/helpers.rb +BuildRequires: yast2-ruby-bindings >= 4.4.7 # Yast2::CommandLine readonly parameter BuildRequires: yast2 >= 4.2.57 # systemd-mini does not add the xkb generated map which is needed by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-country-4.4.8/test/test_helper.rb new/yast2-country-4.4.11/test/test_helper.rb --- old/yast2-country-4.4.8/test/test_helper.rb 2022-01-20 17:09:30.000000000 +0100 +++ new/yast2-country-4.4.11/test/test_helper.rb 2022-02-01 14:23:29.000000000 +0100 @@ -45,10 +45,5 @@ end end -# stub module to prevent its Import -# Useful for modules from different yast packages, to avoid build dependencies -def stub_module(name) - Yast.const_set name.to_sym, Class.new { def self.fake_method; end } -end - -stub_module("AutoInstall") +# stub classes from other modules to avoid build dependencies +Yast::RSpec::Helpers.define_yast_module("AutoInstall")