Skip to content

Commit

Permalink
Merge c486659 into 631132d
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 12, 2023
2 parents 631132d + c486659 commit b4e8f1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions package/yast2-update.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 12 08:37:15 UTC 2023 - Ladislav Slezák <lslezak@suse.com>

- Rebuild the RPM database during upgrade (--rebuilddb) (bsc#1209565)
- 4.5.3

-------------------------------------------------------------------
Wed Nov 16 14:33:33 UTC 2022 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
6 changes: 3 additions & 3 deletions 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.5.2
Version: 4.5.3
Release: 0
Summary: YaST2 - Update
Group: System/YaST
Expand Down Expand Up @@ -52,8 +52,8 @@ Requires: yast2 >= 4.4.25
Requires: yast2-installation
# ProductSpec#register_target
Requires: yast2-packager >= 4.4.15
# filtering orphaned packages
Requires: yast2-pkg-bindings >= 4.5.1
# "rebuild_db" option in Pkg.TargetInitializeOptions
Requires: yast2-pkg-bindings >= 4.5.2
Requires: yast2-ruby-bindings >= 1.0.0
# nokogiri is used for parsing pam conf.
Requires: rubygem(%{rb_default_ruby_abi}:nokogiri)
Expand Down
6 changes: 4 additions & 2 deletions src/include/update/rootpart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,10 @@ def RootPartitionDialog(flavor)
# 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)
if Pkg.TargetInitializeOptions(Installation.destdir,
"target_distro" => target_distribution) != true
if !Pkg.TargetInitializeOptions(Installation.destdir,
# enable DB rebuild at upgrade (bsc#1209565)
"rebuild_db" => true,
"target_distro" => target_distribution)
# Target load failed, #466803
Builtins.y2error("Pkg::TargetInitialize failed")
if Popup.AnyQuestion(
Expand Down

0 comments on commit b4e8f1e

Please sign in to comment.