Hello community,

here is the log from the commit of package yast2-firstboot for 
openSUSE:Leap:15.2 checked in at 2020-03-26 05:40:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-firstboot (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.yast2-firstboot.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-firstboot"

Thu Mar 26 05:40:59 2020 rev:49 rq:787743 version:4.2.13

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/yast2-firstboot/yast2-firstboot.changes        
2020-03-19 08:35:53.325832594 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.yast2-firstboot.new.3160/yast2-firstboot.changes  
    2020-03-26 05:41:00.519267267 +0100
@@ -1,0 +2,6 @@
+Tue Mar 17 17:17:22 UTC 2020 - Josef Reidinger <[email protected]>
+
+- Enable by default registration on SLE (bsc#1162846)
+- 4.2.13
+
+-------------------------------------------------------------------

Old:
----
  yast2-firstboot-4.2.12.tar.bz2

New:
----
  yast2-firstboot-4.2.13.tar.bz2

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

Other differences:
------------------
++++++ yast2-firstboot.spec ++++++
--- /var/tmp/diff_new_pack.Ad94qT/_old  2020-03-26 05:41:00.827267427 +0100
+++ /var/tmp/diff_new_pack.Ad94qT/_new  2020-03-26 05:41:00.831267429 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-firstboot
-Version:        4.2.12
+Version:        4.2.13
 Release:        0
 Summary:        YaST2 - Initial System Configuration
 License:        GPL-2.0-only
@@ -28,6 +28,7 @@
 
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libxslt
+BuildRequires:  ruby
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2-devtools >= 4.2.2
 
@@ -61,6 +62,12 @@
 
 %build
 %yast_build
+# enable registration by default on SLE (bsc#1162846)
+%if !0%{?is_opensuse}
+# lets explain this sed. At first it is address which match line with name
+# registration and +1 for next line and then here change false to true
+sed -i '/<name>registration/,+1s/false/true/' control/firstboot.xml
+%endif
 
 %install
 %yast_install
@@ -68,6 +75,21 @@
 
 mkdir -p $RPM_BUILD_ROOT/usr/share/firstboot/scripts
 
+%check
+# verify defaults for registration
+ruby -r rexml/document -e '
+  %if !0%{?is_opensuse}
+    expected = "true"
+  %else
+    expected = "false"
+  %endif
+  document = REXML::Document.new(File.new("control/firstboot.xml"))
+  # get value of enabled element in registration module in control.xml to 
verify it has expected value
+  if 
document.root.elements["//module[name[text()=\"registration\"]]"].elements["enabled"].get_text
 != expected
+    STDERR.puts "Wrong default for registration module"
+    exit 1
+  end'
+
 %post
 %{fillup_only -n firstboot}
 

++++++ yast2-firstboot-4.2.12.tar.bz2 -> yast2-firstboot-4.2.13.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-firstboot-4.2.12/package/yast2-firstboot.changes 
new/yast2-firstboot-4.2.13/package/yast2-firstboot.changes
--- old/yast2-firstboot-4.2.12/package/yast2-firstboot.changes  2020-03-13 
15:04:19.000000000 +0100
+++ new/yast2-firstboot-4.2.13/package/yast2-firstboot.changes  2020-03-18 
15:05:41.000000000 +0100
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Mar 17 17:17:22 UTC 2020 - Josef Reidinger <[email protected]>
+
+- Enable by default registration on SLE (bsc#1162846)
+- 4.2.13
+
+-------------------------------------------------------------------
 Fri Mar 13 13:15:39 UTC 2020 - Josef Reidinger <[email protected]>
 
 - remember the keyboard selection in the keyboard language dialog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-firstboot-4.2.12/package/yast2-firstboot.spec 
new/yast2-firstboot-4.2.13/package/yast2-firstboot.spec
--- old/yast2-firstboot-4.2.12/package/yast2-firstboot.spec     2020-03-13 
15:04:19.000000000 +0100
+++ new/yast2-firstboot-4.2.13/package/yast2-firstboot.spec     2020-03-18 
15:05:41.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-firstboot
-Version:        4.2.12
+Version:        4.2.13
 Release:        0
 Summary:        YaST2 - Initial System Configuration
 Group:          System/YaST
@@ -29,6 +29,7 @@
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  libxslt
 BuildRequires:  yast2-devtools >= 4.2.2
+BuildRequires:  ruby
 
 PreReq:         %fillup_prereq
 # yast2/NeworkDevices -> yast2/NetworkInterfaces
@@ -60,6 +61,12 @@
 
 %build
 %yast_build
+# enable registration by default on SLE (bsc#1162846)
+%if !0%{?is_opensuse}
+# lets explain this sed. At first it is address which match line with name
+# registration and +1 for next line and then here change false to true
+sed -i '/<name>registration/,+1s/false/true/' control/firstboot.xml
+%endif
 
 %install
 %yast_install
@@ -67,6 +74,20 @@
 
 mkdir -p $RPM_BUILD_ROOT/usr/share/firstboot/scripts
 
+%check
+# verify defaults for registration
+ruby -r rexml/document -e '
+  %if !0%{?is_opensuse}
+    expected = "true"
+  %else
+    expected = "false"
+  %endif
+  document = REXML::Document.new(File.new("control/firstboot.xml"))
+  # get value of enabled element in registration module in control.xml to 
verify it has expected value
+  if 
document.root.elements["//module[name[text()=\"registration\"]]"].elements["enabled"].get_text
 != expected
+    STDERR.puts "Wrong default for registration module"
+    exit 1
+  end'
 
 %post
 %{fillup_only -n firstboot}


Reply via email to