Skip to content

Commit

Permalink
Merge pull request #192 from yast/sp6_fix_going_back
Browse files Browse the repository at this point in the history
[SLE15-SP6] Fixed reusing old repositories with new URL
  • Loading branch information
lslezak authored Oct 31, 2023
2 parents 208538e + e1bab9d commit a2b7b51
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Lint/UnderscorePrefixedVariableName:

# Offense count: 25
Metrics/AbcSize:
Max: 188
Max: 190

# Offense count: 23
# Configuration parameters: CountComments, ExcludedMethods.
Expand All @@ -40,7 +40,7 @@ Metrics/ClassLength:

# Offense count: 25
Metrics/CyclomaticComplexity:
Max: 46
Max: 50

# Offense count: 27
# Configuration parameters: CountComments, ExcludedMethods.
Expand All @@ -54,7 +54,7 @@ Metrics/ModuleLength:

# Offense count: 24
Metrics/PerceivedComplexity:
Max: 55
Max: 60

# Offense count: 49
# Configuration parameters: EnforcedStyle.
Expand Down
8 changes: 8 additions & 0 deletions package/yast2-update.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Oct 31 08:36:56 UTC 2023 - Ladislav Slezák <[email protected]>

- Drop the previously used repositories when going back to the
partition selection at upgrade, this ensures the repositories
are correctly reinitialized later (bsc#1215884)
- 4.6.2

-------------------------------------------------------------------
Fri Sep 01 19:57:03 UTC 2023 - Josef Reidinger <[email protected]>

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


Name: yast2-update
Version: 4.6.1
Version: 4.6.2
Release: 0
Summary: YaST2 - Update
Group: System/YaST
Expand Down
6 changes: 6 additions & 0 deletions src/include/update/rootpart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# calling this module.
require "yast"

require "y2packager/medium_type"
require "y2packager/original_repository_setup"
require "y2packager/product_spec"
require "y2packager/repository"
Expand Down Expand Up @@ -455,6 +456,11 @@ def RootPartitionDialog(flavor)

# New partition has been mounted
if flavor == :update_dialog && ret == :next
# drop all loaded repositories after going back in SLE, the installation
# medium is added later FIXME: what to do in Leap? we need to keep the
# already added installation repository... :-/
Pkg.SourceFinishAll if !Y2Packager::MediumType.standard?

# override the current target distribution at the system and use
# the target distribution from the base product to make the new service
# repositories compatible with the base product at upgrade (bnc#881320)
Expand Down

0 comments on commit a2b7b51

Please sign in to comment.