Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-installation for 
openSUSE:Factory checked in at 2021-11-09 23:53:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-installation (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-installation.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-installation"

Tue Nov  9 23:53:44 2021 rev:481 rq:929058 version:4.4.21

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-installation/yast2-installation.changes    
2021-10-12 21:49:51.003914387 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-installation.new.1890/yast2-installation.changes
  2021-11-09 23:53:45.799926698 +0100
@@ -1,0 +2,14 @@
+Mon Nov  1 12:48:19 UTC 2021 - Martin Vidner <mvid...@suse.com>
+
+- Filter the installation proposals (in the Installation Settings
+  screen) according to the AutoYaST profile even before
+  tab switching (related to bsc#1190294)
+- 4.4.21
+
+-------------------------------------------------------------------
+Thu Oct 28 08:33:55 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <jlo...@suse.com>
+
+- Remove obsolete prep_shrink client (with yast2-storage-ng such a
+  client is not needed anymore).
+
+-------------------------------------------------------------------

Old:
----
  yast2-installation-4.4.20.tar.bz2

New:
----
  yast2-installation-4.4.21.tar.bz2

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

Other differences:
------------------
++++++ yast2-installation.spec ++++++
--- /var/tmp/diff_new_pack.XTxS74/_old  2021-11-09 23:53:46.507927061 +0100
+++ /var/tmp/diff_new_pack.XTxS74/_new  2021-11-09 23:53:46.507927061 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-installation
-Version:        4.4.20
+Version:        4.4.21
 Release:        0
 Summary:        YaST2 - Installation Parts
 License:        GPL-2.0-only

++++++ yast2-installation-4.4.20.tar.bz2 -> yast2-installation-4.4.21.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-installation-4.4.20/.github/workflows/ci.yml 
new/yast2-installation-4.4.21/.github/workflows/ci.yml
--- old/yast2-installation-4.4.20/.github/workflows/ci.yml      2021-10-11 
08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/.github/workflows/ci.yml      2021-11-03 
16:35:34.000000000 +0100
@@ -10,7 +10,6 @@
     runs-on: ubuntu-latest
     container:
       image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
-      options: --privileged
 
     steps:
 
@@ -40,7 +39,6 @@
     runs-on: ubuntu-latest
     container:
       image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
-      options: --privileged
 
     steps:
 
@@ -54,7 +52,6 @@
     runs-on: ubuntu-latest
     container:
       image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
-      options: --privileged
 
     steps:
 
@@ -71,7 +68,6 @@
     runs-on: ubuntu-latest
     container:
       image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
-      options: --privileged
 
     steps:
 
@@ -87,7 +83,6 @@
     runs-on: ubuntu-latest
     container:
       image: registry.opensuse.org/yast/head/containers/yast-ruby:latest
-      options: --privileged
 
     steps:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/package/yast2-installation.changes 
new/yast2-installation-4.4.21/package/yast2-installation.changes
--- old/yast2-installation-4.4.20/package/yast2-installation.changes    
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/package/yast2-installation.changes    
2021-11-03 16:35:34.000000000 +0100
@@ -1,4 +1,18 @@
 -------------------------------------------------------------------
+Mon Nov  1 12:48:19 UTC 2021 - Martin Vidner <mvid...@suse.com>
+
+- Filter the installation proposals (in the Installation Settings
+  screen) according to the AutoYaST profile even before
+  tab switching (related to bsc#1190294)
+- 4.4.21
+
+-------------------------------------------------------------------
+Thu Oct 28 08:33:55 UTC 2021 - Jos?? Iv??n L??pez Gonz??lez <jlo...@suse.com>
+
+- Remove obsolete prep_shrink client (with yast2-storage-ng such a
+  client is not needed anymore).
+
+-------------------------------------------------------------------
 Fri Oct  8 10:04:16 UTC 2021 - Imobach Gonzalez Sosa <igonzalezs...@suse.com>
 
 - Fix file copying when using relurl:// and file:// naming schemes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/package/yast2-installation.spec 
new/yast2-installation-4.4.21/package/yast2-installation.spec
--- old/yast2-installation-4.4.20/package/yast2-installation.spec       
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/package/yast2-installation.spec       
2021-11-03 16:35:34.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-installation
-Version:        4.4.20
+Version:        4.4.21
 Release:        0
 Summary:        YaST2 - Installation Parts
 License:        GPL-2.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/src/clients/prep_shrink_finish.rb 
new/yast2-installation-4.4.21/src/clients/prep_shrink_finish.rb
--- old/yast2-installation-4.4.20/src/clients/prep_shrink_finish.rb     
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/src/clients/prep_shrink_finish.rb     
1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-require "installation/prep_shrink"
-
-::Installation::PrepShrinkFinish.new.run(*Yast::WFM.Args)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/src/lib/installation/clients/inst_finish.rb 
new/yast2-installation-4.4.21/src/lib/installation/clients/inst_finish.rb
--- old/yast2-installation-4.4.20/src/lib/installation/clients/inst_finish.rb   
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/src/lib/installation/clients/inst_finish.rb   
2021-11-03 16:35:34.000000000 +0100
@@ -399,18 +399,11 @@
       end
     end
 
-    INSTALL_BOOTLOADER_STEPS_MINIMAL =
-      [
-        "prep_shrink", # ensure that prep partition is small enough for boot 
sector (bnc#867345)
-        "bootloader"
-      ].freeze
-
     def install_bootloader_steps
       if ::Installation::MinimalInstallation.instance.enabled?
-        INSTALL_BOOTLOADER_STEPS_MINIMAL
+        ["bootloader"]
       else
         [
-          "prep_shrink", # ensure that prep partition is small enough for boot 
sector (bnc#867345)
           "cio_ignore", # needs to be run before initrd is created (bsc#933177)
           ProductFeatures.GetBooleanFeature("globals", "enable_kdump") == true 
? "kdump" : "",
           "bootloader"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/src/lib/installation/prep_shrink.rb 
new/yast2-installation-4.4.21/src/lib/installation/prep_shrink.rb
--- old/yast2-installation-4.4.20/src/lib/installation/prep_shrink.rb   
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/src/lib/installation/prep_shrink.rb   
1970-01-01 01:00:00.000000000 +0100
@@ -1,91 +0,0 @@
-# storage-ng
-#
-# This is apparently used to shrink all (?!) PReP partitions on CHRP (?!)
-# machines to 8 MiB.
-#
-# Not sure what this tries to achieve nor why this deserved its own client.
-#
-
-module Installation
-  class PrepShrinkFinish
-    include Yast::Logger
-    include Yast::I18n
-
-    USABLE_WORKFLOWS = [
-      :installation,
-      :live_installation,
-      :autoinst,
-      :update,
-      :autoupg # TODO: is autoupgrade still live?
-    ].freeze
-
-    YAST_BASH_PATH = Yast::Path.new ".target.bash_output"
-
-    def initialize
-      textdomain "installation"
-    end
-
-    def run(*args)
-      func = args.first
-      param = args[1] || {}
-
-      log.debug "prep shrink finish client called with #{func} and #{param}"
-
-      case func
-      when "Info"
-        Yast.import "Arch"
-        usable = Yast::Arch.board_chrp
-
-        {
-          "steps" => 1,
-          # progress step title
-          "title" => _("Shrinking PREP partition..."),
-          "when"  => usable ? USABLE_WORKFLOWS : []
-        }
-
-      when "Write"
-        shrink_partitions
-
-        nil
-      else
-        raise "Uknown action #{func} passed as first parameter"
-      end
-    end
-
-  private
-
-    MAXIMAL_SIZE_KB = 8192
-    def shrink_partitions
-# storage-ng
-# rubocop:disable Style/BlockComments
-=begin
-      target_map = Yast::Storage.GetTargetMap
-      target_map.each do |_disk, disk_values|
-        (disk_values["partitions"] || []).each do |part_values|
-          next unless need_shrink?(part_values)
-
-          cmd = shrink_command(disk_values, part_values)
-          log.info "shrinking command #{cmd}"
-          Yast::SCR.Execute(YAST_BASH_PATH, cmd)
-        end
-      end
-=end
-    end
-
-    # 0x41 is PPC PREP Boot
-    # 0x108 is DOS PREP boot
-    PREP_IDS = [0x41, 0x108].freeze
-    def need_shrink?(partition)
-      PREP_IDS.include?(partition["fsid"]) &&
-        partition["size_k"] > MAXIMAL_SIZE_KB
-    end
-
-    def shrink_command(disk_values, part_values)
-      cmd = "parted -s -a minimal "
-      cmd << disk_values["device"]
-      cmd << " resize "
-      cmd << part_values["nr"].to_s
-      cmd << " #{MAXIMAL_SIZE_KB}k"
-    end
-  end
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.4.20/src/lib/installation/proposal_runner.rb 
new/yast2-installation-4.4.21/src/lib/installation/proposal_runner.rb
--- old/yast2-installation-4.4.20/src/lib/installation/proposal_runner.rb       
2021-10-11 08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/src/lib/installation/proposal_runner.rb       
2021-11-03 16:35:34.000000000 +0100
@@ -487,9 +487,8 @@
           @html[submod] = prop
 
           # now do the complete html
-          presentation_modules = @store.presentation_order
-          presentation_modules = presentation_modules[@current_tab] if 
@store.tabs?
-          proposal = presentation_modules.reduce("") do |res, mod|
+          load_matching_submodules_list
+          proposal = @submodules_presentation.reduce("") do |res, mod|
             res << (@html[mod] || "")
           end
           display_proposal(div_with_direction(proposal))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-installation-4.4.20/test/prep_shrink_test.rb 
new/yast2-installation-4.4.21/test/prep_shrink_test.rb
--- old/yast2-installation-4.4.20/test/prep_shrink_test.rb      2021-10-11 
08:46:19.000000000 +0200
+++ new/yast2-installation-4.4.21/test/prep_shrink_test.rb      1970-01-01 
01:00:00.000000000 +0100
@@ -1,237 +0,0 @@
-#! /usr/bin/env rspec
-
-require_relative "./test_helper"
-
-require "installation/prep_shrink"
-
-describe ::Installation::PrepShrinkFinish do
-  subject { ::Installation::PrepShrinkFinish.new }
-
-  describe "#run" do
-    describe "first paramater \"Info\"" do
-      it "returns info entry hash with empty \"when\" key for non chrp boarch" 
do
-        arch_mock = double("Yast::Arch", board_chrp: false)
-        stub_const("Yast::Arch", arch_mock)
-
-        result = subject.run("Info")
-
-        expect(result["when"]).to be_empty
-      end
-
-      it "returns info entry hash with scenarios in \"when\" key for chrp 
board" do
-        arch_mock = double("Yast::Arch", board_chrp: true)
-        stub_const("Yast::Arch", arch_mock)
-
-        result = subject.run("Info")
-
-        expect(result["when"]).to_not be_empty
-      end
-    end
-
-    describe "first parameter \"Write\"" do
-      # TODO: create factory like method for Storage
-      STORAGE_DATA = {
-        "/dev/sda" => {
-          "unique"         => "3OOL.41o+EUK3QE2",
-          "bus"            => "IDE",
-          "device"         => "/dev/sda",
-          "vendor"         => "HITACHI",
-          "model"          => "HTS72323",
-          "driver"         => "ahci",
-          "driver_module"  => "ahci",
-          "partitions"     => [
-            {
-              "device"         => "/dev/sda1",
-              "name"           => "sda1",
-              "used_by_type"   => :UB_NONE,
-              "used_by_device" => "",
-              "udev_path"      => "pci-0000:00:1f.2-scsi-0:0:0:0-part1",
-              "udev_id"        => [
-                "ata-HITACHI_HTS723232A7A364_E3834563C86LDM-part1",
-                "scsi-1ATA_HITACHI_HTS723232A7A364_E3834563C86LDM-part1",
-                "scsi-SATA_HITACHI_HTS72323_E3834563C86LDM-part1",
-                "wwn-0x5000cca6d4c3bbb8-part1"
-              ],
-              "size_k"         => 2_104_515,
-              "detected_fs"    => :unknown,
-              "nr"             => 1,
-              "fsid"           => 130,
-              "fstype"         => "Linux swap",
-              "region"         => [0, 262],
-              "type"           => :primary
-            },
-            {
-              "device"         => "/dev/sda2",
-              "name"           => "sda2",
-              "used_by_type"   => :UB_NONE,
-              "used_by_device" => "",
-              "udev_path"      => "pci-0000:00:1f.2-scsi-0:0:0:0-part2",
-              "udev_id"        => [
-                "ata-HITACHI_HTS723232A7A364_E3834563C86LDM-part2",
-                "scsi-1ATA_HITACHI_HTS723232A7A364_E3834563C86LDM-part2",
-                "scsi-SATA_HITACHI_HTS72323_E3834563C86LDM-part2",
-                "wwn-0x5000cca6d4c3bbb8-part2"
-              ],
-              "size_k"         => 20_980_890,
-              "detected_fs"    => :unknown,
-              "nr"             => 2,
-              "fsid"           => 131,
-              "fstype"         => "Linux native",
-              "region"         => [261, 2612],
-              "type"           => :primary,
-              "boot"           => true
-            },
-            {
-              "device"         => "/dev/sda3",
-              "name"           => "sda3",
-              "used_by_type"   => :UB_NONE,
-              "used_by_device" => "",
-              "udev_path"      => "pci-0000:00:1f.2-scsi-0:0:0:0-part3",
-              "udev_id"        => [
-                "ata-HITACHI_HTS723232A7A364_E3834563C86LDM-part3",
-                "scsi-1ATA_HITACHI_HTS723232A7A364_E3834563C86LDM-part3",
-                "scsi-SATA_HITACHI_HTS72323_E3834563C86LDM-part3",
-                "wwn-0x5000cca6d4c3bbb8-part3"
-              ],
-              "size_k"         => 289_499_332,
-              "detected_fs"    => :unknown,
-              "nr"             => 3,
-              "fsid"           => 131,
-              "fstype"         => "Linux native",
-              "region"         => [2872, 36_041],
-              "type"           => :primary
-            }
-          ],
-          "size_k"         => 312_571_224,
-          "cyl_size"       => 8_225_280,
-          "cyl_count"      => 38_913,
-          "sector_size"    => 512,
-          "label"          => "msdos",
-          "name"           => "sda",
-          "max_logical"    => 255,
-          "max_primary"    => 4,
-          "type"           => :CT_DISK,
-          "transport"      => :sata,
-          "used_by_type"   => :UB_NONE,
-          "used_by_device" => "",
-          "udev_id"        => [
-            "ata-HITACHI_HTS723232A7A364_E3834563C86LDM",
-            "scsi-1ATA_HITACHI_HTS723232A7A364_E3834563C86LDM",
-            "scsi-SATA_HITACHI_HTS72323_E3834563C86LDM",
-            "wwn-0x5000cca6d4c3bbb8"
-          ],
-          "udev_path"      => "pci-0000:00:1f.2-scsi-0:0:0:0"
-        },
-        "/dev/sdb" => {
-          "unique"         => "uI_Q.Uy_iBFnqnWC",
-          "bus"            => "SCSI",
-          "device"         => "/dev/sdb",
-          "vendor"         => "Linux",
-          "model"          => "scsi_debug",
-          "driver"         => "scsi_debug",
-          "partitions"     => [
-            {
-              "device"         => "/dev/sdb1",
-              "name"           => "sdb1",
-              "used_by_type"   => :UB_NONE,
-              "used_by_device" => "",
-              "udev_path"      => "scsi-0:0:0:0-part1",
-              "udev_id"        => [
-                "scsi-1Linux_scsi_debug_16000-part1",
-                "scsi-35333333000003e80-part1",
-                "wwn-0x5333333000003e80-part1"
-              ],
-              "size_k"         => 64_260,
-              "detected_fs"    => :unknown,
-              "nr"             => 1,
-              "fsid"           => 65,
-              "fstype"         => "PPC PReP Boot",
-              "region"         => [0, 1],
-              "type"           => :primary,
-              "boot"           => true
-            },
-            {
-              "device"         => "/dev/sdb2",
-              "name"           => "sdb2",
-              "used_by_type"   => :UB_NONE,
-              "used_by_device" => "",
-              "udev_path"      => "scsi-0:0:0:0-part2",
-              "udev_id"        => [
-                "scsi-1Linux_scsi_debug_16000-part2",
-                "scsi-35333333000003e80-part2",
-                "wwn-0x5333333000003e80-part2"
-              ],
-              "size_k"         => 4260,
-              "detected_fs"    => :unknown,
-              "nr"             => 2,
-              "fsid"           => 65,
-              "fstype"         => "PPC PReP Boot",
-              "region"         => [0, 1],
-              "type"           => :primary,
-              "boot"           => true
-            }
-          ],
-          "size_k"         => 307_200,
-          "cyl_size"       => 65_802_240,
-          "cyl_count"      => 4,
-          "sector_size"    => 4096,
-          "label"          => "msdos",
-          "name"           => "sdb",
-          "max_logical"    => 255,
-          "max_primary"    => 4,
-          "type"           => :CT_DISK,
-          "transport"      => :unknown,
-          "used_by_type"   => :UB_NONE,
-          "used_by_device" => "",
-          "udev_id"        => [
-            "scsi-1Linux_scsi_debug_16000",
-            "scsi-35333333000003e80",
-            "wwn-0x5333333000003e80"
-          ],
-          "udev_path"      => "scsi-0:0:0:0"
-        }
-      }.freeze
-
-      before(:each) do
-        stub_const("Yast::Storage", double(GetTargetMap: STORAGE_DATA))
-
-        allow(Yast::SCR).to receive(:Execute)
-          .and_return("exit" => 0, "stdout" => "", "stderr" => "")
-      end
-
-      it "do nothing for non-prep partitions" do
-        expect(Yast::SCR).to receive(:Execute)
-          .with(
-            ::Installation::PrepShrinkFinish::YAST_BASH_PATH,
-            /sda.*resize 1/
-          )
-          .never
-
-        subject.run("Write")
-      end
-
-      it "do nothing for prep partitions small enough" do
-        expect(Yast::SCR).to receive(:Execute)
-          .with(
-            ::Installation::PrepShrinkFinish::YAST_BASH_PATH,
-            /sdb.*resize 2/
-          )
-          .never
-
-        subject.run("Write")
-      end
-
-      it "shrink prep partitions too big" do
-        skip "TODO: not converted to storage-ng yet"
-        expect(Yast::SCR).to receive(:Execute)
-          .with(
-            ::Installation::PrepShrinkFinish::YAST_BASH_PATH,
-            /parted.*sdb.*resize 1/
-          )
-          .once
-
-        subject.run("Write")
-      end
-    end
-  end
-end

Reply via email to