Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/SLE-15-SP7' into show_dialog_exp…
Browse files Browse the repository at this point in the history
…licit
  • Loading branch information
jreidinger committed Dec 17, 2024
2 parents 8405d71 + e95ed3f commit bd5ffb4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
15 changes: 14 additions & 1 deletion package/yast2-installation.changes
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
-------------------------------------------------------------------
Tue Dec 17 12:56:21 UTC 2024 - Josef Reidinger <jreidinger@suse.com>
Tue Dec 17 15:56:21 UTC 2024 - Josef Reidinger <jreidinger@suse.com>

- skip showing reboot message in autoinstallation and
autoupgrade mode only if not explicitly set on command line
(bsc#1231522)
- 4.7.3

-------------------------------------------------------------------
Tue Dec 17 15:05:22 UTC 2024 - Ladislav Slezák <lslezak@suse.com>

- Self-update fix (bsc#1234661)
- Properly compare the package versions from the inst-sys and
the self-update repository
- Remove the architecture suffix when reading the package version
from the inst-sys (the /.packages.root file)
- This fixes false alarm about incorrect self-update repository
when the installation is booted from PXE using the updated
tftpboot-installation-* packages (not the GA version)
- 4.7.2

-------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-installation
Version: 4.7.2
Version: 4.7.3
Release: 0
Summary: YaST2 - Installation Parts
License: GPL-2.0-only
Expand Down
3 changes: 3 additions & 0 deletions src/lib/installation/instsys_packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def self.read(file = "/.packages.root")
name, version = /^(\S+) \[(\S+)\]/.match(line)[1, 2]
next unless name && version

# remove the architecture suffix
version.sub!(/\.(noarch|aarch64|i[3-6]86|ppc64|ppc64le|s390x?|x86_64)$/, "")

# nil repository ID
packages << Y2Packager::Package.new(name, nil, version)
end
Expand Down
8 changes: 7 additions & 1 deletion test/instsys_packages_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@

it "reads the package versions" do
pkgs = Installation::InstsysPackages.read(test_file)

yast2 = pkgs.find { |p| p.name == "yast2" }
yast2_add_on = pkgs.find { |p| p.name == "yast2-add-on" }

# no "x86_64" suffix
expect(yast2.version).to eq("4.2.67-1.7")

expect(yast2.version).to eq("4.2.67-1.7.x86_64")
# no "noarch" suffix
expect(yast2_add_on.version).to eq("4.2.15-1.30")
end
end
end

0 comments on commit bd5ffb4

Please sign in to comment.