Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package autoyast2 for openSUSE:Factory 
checked in at 2022-07-13 14:31:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/autoyast2 (Old)
 and      /work/SRC/openSUSE:Factory/.autoyast2.new.1523 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "autoyast2"

Wed Jul 13 14:31:48 2022 rev:324 rq:988571 version:4.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/autoyast2/autoyast2.changes      2022-05-09 
18:43:52.852191809 +0200
+++ /work/SRC/openSUSE:Factory/.autoyast2.new.1523/autoyast2.changes    
2022-07-13 14:31:57.761255480 +0200
@@ -1,0 +2,10 @@
+Mon Jul 11 15:54:15 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Run the registration step early only on the Online installation
+  medium which does not provide any packages. On the other media
+  run the registration step later.
+  Fixes crash in the SLE Micro when the AutoYaST profile enables
+  the registration step. (bsc#1200803)
+- 4.5.2
+
+-------------------------------------------------------------------

Old:
----
  autoyast2-4.5.1.tar.bz2

New:
----
  autoyast2-4.5.2.tar.bz2

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

Other differences:
------------------
++++++ autoyast2.spec ++++++
--- /var/tmp/diff_new_pack.5W3HKO/_old  2022-07-13 14:31:59.945258298 +0200
+++ /var/tmp/diff_new_pack.5W3HKO/_new  2022-07-13 14:31:59.949258304 +0200
@@ -22,7 +22,7 @@
 %endif
 
 Name:           autoyast2
-Version:        4.5.1
+Version:        4.5.2
 Release:        0
 Summary:        YaST2 - Automated Installation
 License:        GPL-2.0-only

++++++ autoyast2-4.5.1.tar.bz2 -> autoyast2-4.5.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoyast2-4.5.1/package/autoyast2.changes 
new/autoyast2-4.5.2/package/autoyast2.changes
--- old/autoyast2-4.5.1/package/autoyast2.changes       2022-05-06 
17:27:23.000000000 +0200
+++ new/autoyast2-4.5.2/package/autoyast2.changes       2022-07-12 
10:14:09.000000000 +0200
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Mon Jul 11 15:54:15 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Run the registration step early only on the Online installation
+  medium which does not provide any packages. On the other media
+  run the registration step later.
+  Fixes crash in the SLE Micro when the AutoYaST profile enables
+  the registration step. (bsc#1200803)
+- 4.5.2
+
+-------------------------------------------------------------------
 Tue May  3 15:00:22 UTC 2022 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
 
 - Fix detection disk serial and size in the "disks" ERB helper
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoyast2-4.5.1/package/autoyast2.spec 
new/autoyast2-4.5.2/package/autoyast2.spec
--- old/autoyast2-4.5.1/package/autoyast2.spec  2022-05-06 17:27:23.000000000 
+0200
+++ new/autoyast2-4.5.2/package/autoyast2.spec  2022-07-12 10:14:09.000000000 
+0200
@@ -22,7 +22,7 @@
 %endif
 
 Name:           autoyast2
-Version:        4.5.1
+Version:        4.5.2
 Release:        0
 Summary:        YaST2 - Automated Installation
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/autoyast2-4.5.1/src/lib/autoinstall/clients/inst_autoinit.rb 
new/autoyast2-4.5.2/src/lib/autoinstall/clients/inst_autoinit.rb
--- old/autoyast2-4.5.1/src/lib/autoinstall/clients/inst_autoinit.rb    
2022-05-06 17:27:23.000000000 +0200
+++ new/autoyast2-4.5.2/src/lib/autoinstall/clients/inst_autoinit.rb    
2022-07-12 10:14:09.000000000 +0200
@@ -4,6 +4,7 @@
 require "autoinstall/importer"
 require "y2packager/installation_medium"
 require "y2packager/product_spec"
+require "y2packager/medium_type"
 
 Yast.import "AutoinstConfig"
 Yast.import "AutoinstFunctions"
@@ -96,7 +97,9 @@
         autosetup_network if network_before_proposal? && 
!Yast::Mode.autoupgrade
 
         # register the system early to get repositories from registration 
server
-        if 
Yast::Profile.current.fetch_as_hash(REGISTER_SECTION)["do_registration"] &&
+        # when using the Online medium, for the other media the registration 
is done later
+        if Y2Packager::MediumType.online? &&
+            
Yast::Profile.current.fetch_as_hash(REGISTER_SECTION)["do_registration"] &&
             !Yast::Mode.autoupgrade
 
           register = suse_register
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/autoyast2-4.5.1/test/lib/clients/inst_autoinit_test.rb 
new/autoyast2-4.5.2/test/lib/clients/inst_autoinit_test.rb
--- old/autoyast2-4.5.1/test/lib/clients/inst_autoinit_test.rb  2022-05-06 
17:27:23.000000000 +0200
+++ new/autoyast2-4.5.2/test/lib/clients/inst_autoinit_test.rb  2022-07-12 
10:14:09.000000000 +0200
@@ -155,16 +155,39 @@
     context "when the registration is enabled according to the profile" do
       let(:do_registration) { true }
 
-      it "registers the system" do
-        expect(Yast::WFM).to receive(:CallFunction)
-          .with("scc_auto", ["Import", profile["suse_register"]])
-        expect(Yast::WFM).to receive(:CallFunction).with("scc_auto", ["Write"])
-        # fake that registration is available to avoid build requires
-        allow(subject).to 
receive(:registration_module_available?).and_return(true)
-        allow(Yast::Profile).to receive(:remove_sections)
+      before do
+        expect(Y2Packager::MediumType).to 
receive(:online?).and_return(online_medium)
+      end
+
+      context "on the Online medium" do
+        let(:online_medium) { true }
+
+        it "registers the system" do
+          expect(Yast::WFM).to receive(:CallFunction)
+            .with("scc_auto", ["Import", profile["suse_register"]])
+          expect(Yast::WFM).to receive(:CallFunction).with("scc_auto", 
["Write"])
+          # fake that registration is available to avoid build requires
+          allow(subject).to 
receive(:registration_module_available?).and_return(true)
+          allow(Yast::Profile).to receive(:remove_sections)
+
+          subject.run
+        end
+      end
+
+      context "on the Full medium" do
+        let(:online_medium) { false }
 
-        subject.run
+        it "does not register the system" do
+          allow(Yast::WFM).to receive(:CallFunction)
+          expect(Yast::WFM).to_not receive(:CallFunction).with("scc_auto", 
anything)
+          # fake that registration is available to avoid build requires
+          allow(subject).to 
receive(:registration_module_available?).and_return(true)
+          allow(Yast::Profile).to receive(:remove_sections)
+
+          subject.run
+        end
       end
+
     end
 
     context "when the network is requested to be configured before the 
proposal" do

Reply via email to