Hello community, here is the log from the commit of package yast2-kdump for openSUSE:Factory checked in at 2020-06-11 14:42:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-kdump (Old) and /work/SRC/openSUSE:Factory/.yast2-kdump.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-kdump" Thu Jun 11 14:42:56 2020 rev:101 rq:813097 version:4.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-kdump/yast2-kdump.changes 2020-05-15 23:50:26.657327660 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-kdump.new.3606/yast2-kdump.changes 2020-06-11 14:43:42.773209616 +0200 @@ -1,0 +2,6 @@ +Tue Jun 9 19:43:21 UTC 2020 - Josef Reidinger <[email protected]> + +- Reduce autoyast profile size if kdump is disabled (bsc#1172749) +- 4.3.1 + +------------------------------------------------------------------- Old: ---- yast2-kdump-4.3.0.tar.bz2 New: ---- yast2-kdump-4.3.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-kdump.spec ++++++ --- /var/tmp/diff_new_pack.hetLS4/_old 2020-06-11 14:43:43.653212179 +0200 +++ /var/tmp/diff_new_pack.hetLS4/_new 2020-06-11 14:43:43.653212179 +0200 @@ -17,7 +17,7 @@ Name: yast2-kdump -Version: 4.3.0 +Version: 4.3.1 Release: 0 Summary: Configuration of kdump License: GPL-2.0-only ++++++ yast2-kdump-4.3.0.tar.bz2 -> yast2-kdump-4.3.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.3.0/package/yast2-kdump.changes new/yast2-kdump-4.3.1/package/yast2-kdump.changes --- old/yast2-kdump-4.3.0/package/yast2-kdump.changes 2020-05-12 17:36:35.000000000 +0200 +++ new/yast2-kdump-4.3.1/package/yast2-kdump.changes 2020-06-10 08:30:19.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jun 9 19:43:21 UTC 2020 - Josef Reidinger <[email protected]> + +- Reduce autoyast profile size if kdump is disabled (bsc#1172749) +- 4.3.1 + +------------------------------------------------------------------- Tue May 12 09:10:14 UTC 2020 - Josef Reidinger <[email protected]> - Autoyast schema: Allow optional types for string and map objects diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.3.0/package/yast2-kdump.spec new/yast2-kdump-4.3.1/package/yast2-kdump.spec --- old/yast2-kdump-4.3.0/package/yast2-kdump.spec 2020-05-12 17:36:35.000000000 +0200 +++ new/yast2-kdump-4.3.1/package/yast2-kdump.spec 2020-06-10 08:30:19.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-kdump -Version: 4.3.0 +Version: 4.3.1 Release: 0 Summary: Configuration of kdump License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.3.0/src/modules/Kdump.rb new/yast2-kdump-4.3.1/src/modules/Kdump.rb --- old/yast2-kdump-4.3.0/src/modules/Kdump.rb 2020-05-12 17:36:35.000000000 +0200 +++ new/yast2-kdump-4.3.1/src/modules/Kdump.rb 2020-06-10 08:30:19.000000000 +0200 @@ -930,16 +930,20 @@ # Export kdump settings to a map # @return kdump settings def Export - crash_kernel = crash_kernel_values - crash_kernel = crash_kernel[0] if crash_kernel.size == 1 - crash_xen_kernel = crash_xen_kernel_values - crash_xen_kernel = crash_xen_kernel[0] if crash_xen_kernel.size == 1 - out = { - "crash_kernel" => crash_kernel, - "crash_xen_kernel" => crash_xen_kernel, - "add_crash_kernel" => @add_crashkernel_param, - "general" => filterExport(@KDUMP_SETTINGS) - } + if @add_crashkernel_param + crash_kernel = crash_kernel_values + crash_kernel = crash_kernel[0] if crash_kernel.size == 1 + crash_xen_kernel = crash_xen_kernel_values + crash_xen_kernel = crash_xen_kernel[0] if crash_xen_kernel.size == 1 + out = { + "crash_kernel" => crash_kernel, + "crash_xen_kernel" => crash_xen_kernel, + "add_crash_kernel" => true, + "general" => filterExport(@KDUMP_SETTINGS) + } + else + out = { "add_crash_kernel" => false } + end Builtins.y2milestone("Kdump exporting settings: %1", out) deep_copy(out) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.3.0/test/kdump_test.rb new/yast2-kdump-4.3.1/test/kdump_test.rb --- old/yast2-kdump-4.3.0/test/kdump_test.rb 2020-05-12 17:36:35.000000000 +0200 +++ new/yast2-kdump-4.3.1/test/kdump_test.rb 2020-06-10 08:30:19.000000000 +0200 @@ -15,6 +15,8 @@ Yast::Kdump.reset end + subject { Yast::Kdump } + # allocated_memory is a hash, values are strings in megabytes # total_memory is an integer in megabytes describe "#ProposeAllocatedMemory" do @@ -847,4 +849,12 @@ expect { Yast::Kdump.Import(nil) }.to_not raise_error end end + + describe ".Export" do + it "exports only add_crash_kernel=false if kdump is disabled" do + subject.add_crashkernel_param = false + + expect(subject.Export).to eq("add_crash_kernel" => false) + end + end end
