Hello community,

here is the log from the commit of package yast2-storage-ng for 
openSUSE:Factory checked in at 2018-01-19 13:54:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-storage-ng (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-storage-ng.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-storage-ng"

Fri Jan 19 13:54:06 2018 rev:2 rq:567684 version:4.0.70

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-storage-ng/yast2-storage-ng.changes        
2018-01-17 22:04:05.682949393 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-storage-ng.new/yast2-storage-ng.changes   
2018-01-19 13:54:08.129651254 +0100
@@ -1,0 +2,7 @@
+Fri Jan 19 09:41:52 UTC 2018 - [email protected]
+
+- Correctly open the expert partitioner when called from the
+  Kubic/CaaSP summary screen (bsc#1076732)
+- 4.0.70
+
+-------------------------------------------------------------------

Old:
----
  yast2-storage-ng-4.0.69.tar.bz2

New:
----
  yast2-storage-ng-4.0.70.tar.bz2

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

Other differences:
------------------
++++++ yast2-storage-ng.spec ++++++
--- /var/tmp/diff_new_pack.XHP174/_old  2018-01-19 13:54:08.877616027 +0100
+++ /var/tmp/diff_new_pack.XHP174/_new  2018-01-19 13:54:08.881615838 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-storage-ng
-Version:        4.0.69
+Version:        4.0.70
 Release:        0
 BuildArch:      noarch
 

++++++ yast2-storage-ng-4.0.69.tar.bz2 -> yast2-storage-ng-4.0.70.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-storage-ng-4.0.69/package/yast2-storage-ng.changes 
new/yast2-storage-ng-4.0.70/package/yast2-storage-ng.changes
--- old/yast2-storage-ng-4.0.69/package/yast2-storage-ng.changes        
2018-01-16 10:01:02.000000000 +0100
+++ new/yast2-storage-ng-4.0.70/package/yast2-storage-ng.changes        
2018-01-19 11:07:17.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Jan 19 09:41:52 UTC 2018 - [email protected]
+
+- Correctly open the expert partitioner when called from the
+  Kubic/CaaSP summary screen (bsc#1076732)
+- 4.0.70
+
+-------------------------------------------------------------------
 Mon Jan 15 14:22:32 UTC 2018 - [email protected]
 
 - Added sanity checks for partitioning setup.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-storage-ng-4.0.69/package/yast2-storage-ng.spec 
new/yast2-storage-ng-4.0.70/package/yast2-storage-ng.spec
--- old/yast2-storage-ng-4.0.69/package/yast2-storage-ng.spec   2018-01-16 
10:01:02.000000000 +0100
+++ new/yast2-storage-ng-4.0.70/package/yast2-storage-ng.spec   2018-01-19 
11:07:17.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:          yast2-storage-ng
-Version:        4.0.69
+Version:        4.0.70
 Release:       0
 BuildArch:     noarch
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-storage-ng-4.0.69/src/lib/y2storage/clients/partitions_proposal.rb 
new/yast2-storage-ng-4.0.70/src/lib/y2storage/clients/partitions_proposal.rb
--- 
old/yast2-storage-ng-4.0.69/src/lib/y2storage/clients/partitions_proposal.rb    
    2018-01-16 10:01:02.000000000 +0100
+++ 
new/yast2-storage-ng-4.0.70/src/lib/y2storage/clients/partitions_proposal.rb    
    2018-01-19 11:07:17.000000000 +0100
@@ -66,7 +66,9 @@
       def ask_user(param)
         event = param["chosen_id"]
 
-        if event == description["id"]
+        # Also run the expert partitioner as default option if no id was
+        # specified by the caller (bsc#1076732)
+        if event == description["id"] || event.nil?
           result = expert_partitioner
           result = { next: :again, back: :back, abort: :finish }[result]
         elsif actions_presenter.can_handle?(event)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-storage-ng-4.0.69/test/y2storage/clients/partitions_proposal_test.rb 
new/yast2-storage-ng-4.0.70/test/y2storage/clients/partitions_proposal_test.rb
--- 
old/yast2-storage-ng-4.0.69/test/y2storage/clients/partitions_proposal_test.rb  
    2018-01-16 10:01:02.000000000 +0100
+++ 
new/yast2-storage-ng-4.0.70/test/y2storage/clients/partitions_proposal_test.rb  
    2018-01-19 11:07:17.000000000 +0100
@@ -215,9 +215,7 @@
   end
 
   describe "#ask_user" do
-    context "when 'chosen_id' is equal to the description id" do
-      let(:param) { { "chosen_id" => subject.description["id"] } }
-
+    RSpec.shared_context "run expert partitioner" do
       before do
         allow(Y2Partitioner::Dialogs::Main).to 
receive(:new).and_return(expert_dialog)
         allow(expert_dialog).to receive(:run).and_return(result)
@@ -275,6 +273,19 @@
       end
     end
 
+    context "when 'chosen_id' is equal to the description id" do
+      let(:param) { { "chosen_id" => subject.description["id"] } }
+
+      include_context "run expert partitioner"
+    end
+
+    # Used by yast-caasp
+    context "when called with empty params" do
+      let(:param) { {} }
+
+      include_context "run expert partitioner"
+    end
+
     context "when 'chosen_id' is an actions presenter event" do
       let(:param) { { "chosen_id" => actions_presenter.events.first } }
 


Reply via email to