Hello community,

here is the log from the commit of package yast2 for openSUSE:Factory checked 
in at 2015-08-29 20:03:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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      2015-08-21 
12:42:45.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2.new/yast2.changes 2015-08-29 
20:04:01.000000000 +0200
@@ -1,0 +2,19 @@
+Wed Aug 26 19:25:07 UTC 2015 - mfi...@suse.com
+
+- bnc#897129
+  - AutoYaST will no longer ignore firewall settings if
+    keep_install_network is enabled
+- 3.1.149
+-------------------------------------------------------------------
+Wed Aug 26 15:17:35 UTC 2015 - igonzalezs...@suse.com
+
+- Add a Mode#auto method
+
+-------------------------------------------------------------------
+Wed Aug 26 15:09:06 CEST 2015 - sch...@suse.de
+
+- Checking cpuinfo_flags correctly while evaluating kernel packages
+  for i586. (bnc#943297)
+- 3.1.148
+
+-------------------------------------------------------------------

Old:
----
  yast2-3.1.147.tar.bz2

New:
----
  yast2-3.1.149.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.9KmaOS/_old  2015-08-29 20:04:02.000000000 +0200
+++ /var/tmp/diff_new_pack.9KmaOS/_new  2015-08-29 20:04:02.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.147
+Version:        3.1.149
 Release:        0
 Url:            https://github.com/yast/yast-yast2
 

++++++ yast2-3.1.147.tar.bz2 -> yast2-3.1.149.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/library/general/src/modules/Mode.rb 
new/yast2-3.1.149/library/general/src/modules/Mode.rb
--- old/yast2-3.1.147/library/general/src/modules/Mode.rb       2015-08-20 
12:26:09.000000000 +0200
+++ new/yast2-3.1.149/library/general/src/modules/Mode.rb       2015-08-27 
11:16:08.000000000 +0200
@@ -53,15 +53,15 @@
   #
   # It has these mutually exclusive values and corresponding boolean queries:
   # <table>
-  # <tr><th> {#mode} value </th>    <th colspan=2> boolean shortcut   
</th></tr>
-  # <tr><td> normal </td>           <td colspan=2> {#normal}          
</td></tr>
+  # <tr><th> {#mode} value </th>    <th colspan=3> boolean shortcut   
</th></tr>
+  # <tr><td> normal </td>           <td colspan=3> {#normal}          
</td></tr>
   # <tr><td> installation </td>     <td rowspan=3> {#installation}    
</td></tr>
-  # <tr><td> autoinstallation </td> <td>         {#autoinst} (short!) 
</td></tr>
-  # <tr><td> live_installation </td><td>         {#live_installation} 
</td></tr>
-  # <tr><td> autoinst_config </td>  <td colspan=2> {#config}          
</td></tr>
+  # <tr><td> live_installation </td><td colspan=2>         
{#live_installation} </td></tr>
+  # <tr><td> autoinstallation </td> <td colspan=1>         {#autoinst} 
(short!) </td><td rowspan=2>#auto</td></tr>
+  # <tr><td> autoupgrade </td>      <td colspan=2> {#autoupgrade}     
</td></tr>
+  # <tr><td> autoinst_config </td>  <td colspan=3> {#config}          
</td></tr>
   # <tr><td> update </td>           <td rowspan=2> {#update}          
</td></tr>
-  # <tr><td> autoupgrade </td>      <td>           {#autoupgrade}     
</td></tr>
-  # <tr><td> repair (obsolete) </td><td colspan=2> {#repair}          
</td></tr>
+  # <tr><td> repair (obsolete) </td><td colspan=3> {#repair}          
</td></tr>
   # </table>
   #
   # # *UI* mode
@@ -284,6 +284,11 @@
       mode == "autoupgrade"
     end
 
+    # Doing auto-installation or auto-upgrade with AutoYaST.
+    def auto
+      autoinst || autoupgrade
+    end
+
     # Configuration for {#autoinst}, usually in the running system.
     #
     # @note also true during the installation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/library/general/test/mode_test.rb 
new/yast2-3.1.149/library/general/test/mode_test.rb
--- old/yast2-3.1.147/library/general/test/mode_test.rb 1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-3.1.149/library/general/test/mode_test.rb 2015-08-27 
11:16:08.000000000 +0200
@@ -0,0 +1,377 @@
+#! /usr/bin/env rspec
+
+require_relative "test_helper"
+
+Yast.import "Mode"
+
+describe Yast::Mode do
+  before do
+    Yast::Mode.Initialize()
+  end
+
+  describe "#SetMode" do
+    it "sets mode to given one" do
+      Yast::Mode.SetMode("installation")
+      expect(Yast::Mode.mode).to eq("installation")
+    end
+
+    context "when given mode does not exist" do
+      it "changes the mode but logs an error" do
+        expect(Yast::Builtins).to receive(:y2error).with("Unknown mode %1", 
"unknown")
+        Yast::Mode.SetMode("unknown")
+        expect(Yast::Mode.mode).to eq("unknown")
+      end
+    end
+  end
+
+  describe "#SetTest" do
+    it "sets test mode to given one" do
+      Yast::Mode.SetTest("test")
+      expect(Yast::Mode.testMode).to eq("test")
+    end
+
+    context "when given test mode does not exist" do
+      it "changes the test mode but logs an error" do
+        expect(Yast::Builtins).to receive(:y2error).with("Unknown test mode 
%1", "unknown")
+        Yast::Mode.SetTest("unknown")
+        expect(Yast::Mode.testMode).to eq("unknown")
+      end
+    end
+  end
+
+  describe "#SetUI" do
+    it "sets the UI mode" do
+      Yast::Mode.SetUI("dialog")
+      expect(Yast::Mode.ui).to eq("dialog")
+    end
+
+    context "when given UI mode is unknown" do
+      it "changes the UI mode but logs an error" do
+        expect(Yast::Builtins).to receive(:y2error).with("Unknown UI mode %1", 
"unknown")
+        Yast::Mode.SetUI("unknown")
+        expect(Yast::Mode.ui).to eq("unknown")
+      end
+    end
+  end
+
+  describe "#installation" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'installation'" do
+      let(:mode) { "installation" }
+
+      it "returns true" do
+        expect(Yast::Mode.installation).to eq(true)
+      end
+    end
+
+    context "when mode is 'autoinstallation'" do
+      let(:mode) { "autoinstallation" }
+
+      it "returns true" do
+        expect(Yast::Mode.installation).to eq(true)
+      end
+    end
+
+    context "when mode is 'live_installation'" do
+      let(:mode) { "live_installation" }
+
+      it "returns true" do
+        expect(Yast::Mode.installation).to eq(true)
+      end
+    end
+
+    context "when mode is not 'installation', 'autoinstallation' nor 
'live_installation'" do
+      let(:mode) { "update" }
+
+      it "returns false" do
+        expect(Yast::Mode.installation).to eq(false)
+      end
+    end
+  end
+
+  describe "#live_installation" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'live_installation'" do
+      let(:mode) { "live_installation" }
+
+      it "returns true" do
+        expect(Yast::Mode.live_installation).to eq(true)
+      end
+    end
+
+    context "when mode is not 'live_installation'" do
+      let(:mode) { "installation" }
+
+      it "returns false" do
+        expect(Yast::Mode.live_installation).to eq(false)
+      end
+    end
+  end
+
+  describe "#update" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'update'" do
+      let(:mode) { "update" }
+
+      it "returns true" do
+        expect(Yast::Mode.update).to eq(true)
+      end
+    end
+
+    context "when mode is 'autoupgrade'" do
+      let(:mode) { "autoupgrade" }
+
+      it "returns true" do
+        expect(Yast::Mode.update).to eq(true)
+      end
+    end
+
+    context "when mode is not 'update' nor 'autoupgrade'" do
+      let(:mode) { "installation" }
+
+      it "returns false" do
+        expect(Yast::Mode.update).to eq(false)
+      end
+    end
+  end
+
+  describe "#Depeche" do
+    it "returns true :)" do
+      expect(Yast::Mode.Depeche).to eq(true)
+    end
+  end
+
+  describe "#normal" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'normal'" do
+      let(:mode) { "normal" }
+
+      it "returns true" do
+        expect(Yast::Mode.normal).to eq(true)
+      end
+    end
+
+    context "when mode is not 'normal'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.normal).to eq(false)
+      end
+    end
+  end
+
+  describe "#repair" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'repair'" do
+      let(:mode) { "repair" }
+
+      it "returns true" do
+        expect(Yast::Mode.repair).to eq(true)
+      end
+    end
+
+    context "when mode is not 'repair'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.repair).to eq(false)
+      end
+    end
+  end
+
+  describe "#autoinst" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'autoinst'" do
+      let(:mode) { "autoinstallation" }
+
+      it "returns true" do
+        expect(Yast::Mode.autoinst).to eq(true)
+      end
+    end
+
+    context "when mode is not 'autoinst'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.autoinst).to eq(false)
+      end
+    end
+  end
+
+  describe "#autoupgrade" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'autoupgrade'" do
+      let(:mode) { "autoupgrade" }
+
+      it "returns true" do
+        expect(Yast::Mode.autoupgrade).to eq(true)
+      end
+    end
+
+    context "when mode is not 'autoupgrade'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.autoupgrade).to eq(false)
+      end
+    end
+  end
+
+  describe "#auto" do
+    context "when Mode.autoinst is true" do
+      before do
+        allow(Yast::Mode).to receive(:autoinst).and_return(true)
+      end
+
+      it "returns true" do
+        expect(Yast::Mode.auto).to eq(true)
+      end
+    end
+
+    context "when Mode.autoupgrade is true" do
+      before do
+        allow(Yast::Mode).to receive(:autoupgrade).and_return(true)
+      end
+
+      it "returns true" do
+        expect(Yast::Mode.auto).to eq(true)
+      end
+    end
+
+    context "when Mode.autoinst and Mode.autoupgrade are false" do
+      before do
+        allow(Yast::Mode).to receive(:autoinst).and_return(false)
+        allow(Yast::Mode).to receive(:autoupgrade).and_return(false)
+      end
+
+      it "returns false" do
+        expect(Yast::Mode.auto).to eq(false)
+      end
+    end
+  end
+
+  describe "#config" do
+    before do
+      Yast::Mode.SetMode(mode)
+    end
+
+    context "when mode is 'autoinst_config'" do
+      let(:mode) { "autoinst_config" }
+
+      it "returns true" do
+        expect(Yast::Mode.config).to eq(true)
+      end
+    end
+
+    context "when mode is not 'autoinst_config'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.config).to eq(false)
+      end
+    end
+  end
+
+  describe "#test" do
+    before do
+      Yast::Mode.SetTest(mode)
+    end
+
+    context "when test mode is 'test'" do
+      let(:mode) { "test" }
+
+      it "returns true" do
+        expect(Yast::Mode.test).to eq(true)
+      end
+    end
+
+    context "when test mode is 'screenshot'" do
+      let(:mode) { "screenshot" }
+
+      it "returns true" do
+        expect(Yast::Mode.test).to eq(true)
+      end
+    end
+
+    context "when test mode is 'testsuite'" do
+      let(:mode) { "testsuite" }
+
+      it "returns true" do
+        expect(Yast::Mode.test).to eq(true)
+      end
+    end
+
+    context "when test mode is not 'test', 'screenshot' or 'testsuite'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.test).to eq(false)
+      end
+    end
+  end
+
+  describe "#testsuite" do
+    before do
+      Yast::Mode.SetTest(mode)
+    end
+
+    context "when test mode is 'testsuite'" do
+      let(:mode) { "testsuite" }
+
+      it "returns true" do
+        expect(Yast::Mode.testsuite).to eq(true)
+      end
+    end
+
+    context "when test mode is not 'testsuite'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.testsuite).to eq(false)
+      end
+    end
+  end
+
+  describe "#commandline" do
+    before do
+      Yast::Mode.SetUI(mode)
+    end
+
+    context "when UI mode is 'commandline'" do
+      let(:mode) { "commandline" }
+
+      it "returns true" do
+        expect(Yast::Mode.commandline).to eq(true)
+      end
+    end
+
+    context "when UI mode is not 'commandline'" do
+      let(:mode) { "other" }
+
+      it "returns false" do
+        expect(Yast::Mode.commandline).to eq(false)
+      end
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.147/library/network/src/modules/SuSEFirewall.rb 
new/yast2-3.1.149/library/network/src/modules/SuSEFirewall.rb
--- old/yast2-3.1.147/library/network/src/modules/SuSEFirewall.rb       
2015-08-20 12:26:09.000000000 +0200
+++ new/yast2-3.1.149/library/network/src/modules/SuSEFirewall.rb       
2015-08-27 11:16:08.000000000 +0200
@@ -1453,10 +1453,10 @@
     #
     # @param   map <string, any> with configuration
     def Import(import_settings)
-      import_settings = deep_copy(import_settings)
-      SetModified()
-
       @SETTINGS = deep_copy(import_settings)
+      @configuration_has_been_read = true
+
+      SetModified()
 
       nil
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/library/system/src/modules/Kernel.rb 
new/yast2-3.1.149/library/system/src/modules/Kernel.rb
--- old/yast2-3.1.147/library/system/src/modules/Kernel.rb      2015-08-20 
12:26:09.000000000 +0200
+++ new/yast2-3.1.149/library/system/src/modules/Kernel.rb      2015-08-27 
11:16:08.000000000 +0200
@@ -362,7 +362,7 @@
         cpuflags = []
 
         # bugzilla #303842
-        if !cpuflags.nil?
+        if cpuinfo_flags
           cpuflags = cpuinfo_flags.empty? ? [] : cpuinfo_flags.split(" ")
         else
           Builtins.y2error("Cannot read cpuflags")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/library/system/test/kernel_test.rb 
new/yast2-3.1.149/library/system/test/kernel_test.rb
--- old/yast2-3.1.147/library/system/test/kernel_test.rb        2015-08-20 
12:26:09.000000000 +0200
+++ new/yast2-3.1.149/library/system/test/kernel_test.rb        2015-08-27 
11:16:08.000000000 +0200
@@ -39,6 +39,18 @@
     end
   end
 
+  describe "#GetPackages" do
+    it "returns kernel packages for i386 and no cpu info flags" do
+      allow(Yast::Arch).to receive(:architecture).and_return("i386")
+      allow(Yast::Arch).to receive(:is_uml).and_return(false)
+      allow(Yast::Arch).to receive(:is_xen).and_return(false)
+      expect(Yast::SCR).to 
receive(:Read).with(path(".probe.is_xen")).and_return(false)
+      expect(Yast::SCR).to 
receive(:Read).with(path(".proc.cpuinfo.value.\"0\".\"flags\"")).and_return(nil)
+      expect(Yast::SCR).to 
receive(:Read).with(path(".probe.memory")).and_return(10)
+      expect(Yast::Kernel.GetPackages).to eq(["kernel-default"])
+    end
+  end
+
   describe "#module_to_be_loaded?" do
     it "tests whether module is loaded on boot" do
       ["module-a", "module-b", "user-module-1", "user-module-2", 
"user-module-3", "user-module-4"].each do |kernel_module|
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/package/yast2.changes 
new/yast2-3.1.149/package/yast2.changes
--- old/yast2-3.1.147/package/yast2.changes     2015-08-20 12:26:09.000000000 
+0200
+++ new/yast2-3.1.149/package/yast2.changes     2015-08-27 11:16:08.000000000 
+0200
@@ -1,4 +1,23 @@
 -------------------------------------------------------------------
+Wed Aug 26 19:25:07 UTC 2015 - mfi...@suse.com
+
+- bnc#897129
+  - AutoYaST will no longer ignore firewall settings if
+    keep_install_network is enabled
+- 3.1.149
+-------------------------------------------------------------------
+Wed Aug 26 15:17:35 UTC 2015 - igonzalezs...@suse.com
+
+- Add a Mode#auto method
+
+-------------------------------------------------------------------
+Wed Aug 26 15:09:06 CEST 2015 - sch...@suse.de
+
+- Checking cpuinfo_flags correctly while evaluating kernel packages
+  for i586. (bnc#943297)
+- 3.1.148
+
+-------------------------------------------------------------------
 Thu Aug 20 08:18:47 UTC 2015 - lsle...@suse.cz
 
 - "yast2" script - handle also the reboot flag the same way as
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.147/package/yast2.spec 
new/yast2-3.1.149/package/yast2.spec
--- old/yast2-3.1.147/package/yast2.spec        2015-08-20 12:26:09.000000000 
+0200
+++ new/yast2-3.1.149/package/yast2.spec        2015-08-27 11:16:08.000000000 
+0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.147
+Version:        3.1.149
 Release:        0
 Url:            https://github.com/yast/yast-yast2
 


Reply via email to