commit yast2 for openSUSE:Factory
Hello community, here is the log from the commit of package yast2 for openSUSE:Factory checked in at 2014-07-02 15:04:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2 (Old) and /work/SRC/openSUSE:Factory/.yast2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "yast2" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2/yast2.changes 2014-06-26 08:00:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.yast2.new/yast2.changes 2014-07-02 15:04:15.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Jul 1 09:00:51 UTC 2014 - vmoravec@suse.com + +- Fix SystemdTarget.all not to return nil in the collection +- 3.1.82 + +------------------------------------------------------------------- Old: ---- yast2-3.1.81.tar.bz2 New: ---- yast2-3.1.82.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2.spec ++++++ --- /var/tmp/diff_new_pack.FUOInw/_old 2014-07-02 15:04:16.000000000 +0200 +++ /var/tmp/diff_new_pack.FUOInw/_new 2014-07-02 15:04:16.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 3.1.81 +Version: 3.1.82 Release: 0 Url: https://github.com/yast/yast-yast2 ++++++ yast2-3.1.81.tar.bz2 -> yast2-3.1.82.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/library/systemd/src/modules/systemd_target.rb new/yast2-3.1.82/library/systemd/src/modules/systemd_target.rb --- old/yast2-3.1.81/library/systemd/src/modules/systemd_target.rb 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/library/systemd/src/modules/systemd_target.rb 2014-07-01 11:12:25.000000000 +0200 @@ -58,9 +58,10 @@ end def all properties={} - Systemctl.target_units.map do |target_unit_name| + targets = Systemctl.target_units.map do |target_unit_name| find(target_unit_name) end + targets.compact end def get_default diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/library/systemd/test/systemctl_test.rb new/yast2-3.1.82/library/systemd/test/systemctl_test.rb --- old/yast2-3.1.81/library/systemd/test/systemctl_test.rb 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/library/systemd/test/systemctl_test.rb 2014-07-01 11:12:25.000000000 +0200 @@ -47,5 +47,15 @@ service_units.each {|u| expect(u).to match(/.service$/) } end end + + describe ".target_units" do + before { stub_systemctl(:target) } + it "returns a list of target unit names" do + target_units = Systemctl.target_units + expect(target_units).to be_a(Array) + expect(target_units).not_to be_empty + target_units.each {|u| expect(u).to match(/.target$/) } + end + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/library/systemd/test/systemd_target_test.rb new/yast2-3.1.82/library/systemd/test/systemd_target_test.rb --- old/yast2-3.1.81/library/systemd/test/systemd_target_test.rb 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/library/systemd/test/systemd_target_test.rb 2014-07-01 11:12:25.000000000 +0200 @@ -45,6 +45,7 @@ targets = SystemdTarget.all expect(targets).to be_a(Array) expect(targets).not_to be_empty + expect(targets).not_to include(nil) targets.each {|s| expect(s.unit_type).to eq('target')} end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/library/systemd/test/test_helper.rb new/yast2-3.1.82/library/systemd/test/test_helper.rb --- old/yast2-3.1.81/library/systemd/test/test_helper.rb 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/library/systemd/test/test_helper.rb 2014-07-01 11:12:25.000000000 +0200 @@ -20,6 +20,9 @@ when :service stub_service_unit_files stub_service_units + when :target + stub_target_unit_files + stub_target_units end stub_execute end @@ -57,6 +60,20 @@ ) end + def stub_target_unit_files + Yast::Systemctl.stub(:list_unit_files).and_return(<<LIST +graphical.target enabled +halt.target disabled +hibernate.target static +sleep.target static +initrd-root-fs.target static +initrd.target static +kexec.target disabled +multi-user.target disabled +LIST + ) + end + def stub_service_units Yast::Systemctl.stub(:list_units).and_return(<<LIST rsyslog.service loaded active running System Logging Service diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/package/yast2.changes new/yast2-3.1.82/package/yast2.changes --- old/yast2-3.1.81/package/yast2.changes 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/package/yast2.changes 2014-07-01 11:12:25.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jul 1 09:00:51 UTC 2014 - vmoravec@suse.com + +- Fix SystemdTarget.all not to return nil in the collection +- 3.1.82 + +------------------------------------------------------------------- Tue Jun 24 12:59:43 UTC 2014 - jreidinger@suse.com - add option to disable os probing for some products (bnc#884007) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-3.1.81/package/yast2.spec new/yast2-3.1.82/package/yast2.spec --- old/yast2-3.1.81/package/yast2.spec 2014-06-24 16:12:52.000000000 +0200 +++ new/yast2-3.1.82/package/yast2.spec 2014-07-01 11:12:25.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2 -Version: 3.1.81 +Version: 3.1.82 Release: 0 URL: https://github.com/yast/yast-yast2 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de