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 2023-11-02 20:20:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-installation (Old) and /work/SRC/openSUSE:Factory/.yast2-installation.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-installation" Thu Nov 2 20:20:56 2023 rev:526 rq:1121603 version:5.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-installation/yast2-installation.changes 2023-09-26 22:16:21.364250050 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-installation.new.17445/yast2-installation.changes 2023-11-02 20:21:02.894904752 +0100 @@ -1,0 +2,7 @@ +Tue Oct 31 12:40:00 UTC 2023 - Ladislav Slezák <lsle...@suse.com> + +- Refresh repositories with changed URL and reload them again + to activate the changes (related to bsc#1215884) +- 5.0.2 + +------------------------------------------------------------------- Old: ---- yast2-installation-5.0.1.tar.bz2 New: ---- yast2-installation-5.0.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-installation.spec ++++++ --- /var/tmp/diff_new_pack.mCBnyc/_old 2023-11-02 20:21:03.802938164 +0100 +++ /var/tmp/diff_new_pack.mCBnyc/_new 2023-11-02 20:21:03.806938311 +0100 @@ -17,7 +17,7 @@ Name: yast2-installation -Version: 5.0.1 +Version: 5.0.2 Release: 0 Summary: YaST2 - Installation Parts License: GPL-2.0-only @@ -28,8 +28,8 @@ Source2: YaST2-Firstboot.service BuildRequires: update-desktop-files -# Y2Packager::NewRepositorySetup -BuildRequires: yast2 >= 4.4.42 +# Y2Packager::Repository.refresh +BuildRequires: yast2 >= 5.0.3 # new name for CPUMitigation widget BuildRequires: yast2-bootloader >= 5.0.1 # storage-ng based version @@ -74,8 +74,8 @@ Requires: tar # /usr/lib/YaST2/bin/xftdpi, install only when the GUI is installed Requires: (yast2-x11 >= 4.5.1 if libyui-qt) -# Y2Packager::NewRepositorySetup -Requires: yast2 >= 4.4.42 +# Y2Packager::Repository.refresh +Requires: yast2 >= 5.0.3 Requires: yast2-bootloader >= 5.0.1 Requires: yast2-country >= 3.3.1 # Language::GetLanguageItems and other API ++++++ yast2-installation-5.0.1.tar.bz2 -> yast2-installation-5.0.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/package/yast2-installation.changes new/yast2-installation-5.0.2/package/yast2-installation.changes --- old/yast2-installation-5.0.1/package/yast2-installation.changes 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/package/yast2-installation.changes 2023-11-01 13:05:55.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Oct 31 12:40:00 UTC 2023 - Ladislav Slezák <lsle...@suse.com> + +- Refresh repositories with changed URL and reload them again + to activate the changes (related to bsc#1215884) +- 5.0.2 + +------------------------------------------------------------------- Tue Sep 5 09:41:29 UTC 2023 - Josef Reidinger <jreidin...@suse.com> - Adapt code for changes in yast2-bootloader done for systemd-boot diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/package/yast2-installation.spec new/yast2-installation-5.0.2/package/yast2-installation.spec --- old/yast2-installation-5.0.1/package/yast2-installation.spec 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/package/yast2-installation.spec 2023-11-01 13:05:55.000000000 +0100 @@ -16,7 +16,7 @@ # Name: yast2-installation -Version: 5.0.1 +Version: 5.0.2 Release: 0 Summary: YaST2 - Installation Parts License: GPL-2.0-only @@ -27,8 +27,8 @@ Source2: YaST2-Firstboot.service BuildRequires: update-desktop-files -# Y2Packager::NewRepositorySetup -BuildRequires: yast2 >= 4.4.42 +# Y2Packager::Repository.refresh +BuildRequires: yast2 >= 5.0.3 # new name for CPUMitigation widget BuildRequires: yast2-bootloader >= 5.0.1 # storage-ng based version @@ -73,8 +73,8 @@ Requires: tar # /usr/lib/YaST2/bin/xftdpi, install only when the GUI is installed Requires: (yast2-x11 >= 4.5.1 if libyui-qt) -# Y2Packager::NewRepositorySetup -Requires: yast2 >= 4.4.42 +# Y2Packager::Repository.refresh +Requires: yast2 >= 5.0.3 Requires: yast2-bootloader >= 5.0.1 Requires: yast2-country >= 3.3.1 # Language::GetLanguageItems and other API diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/src/lib/installation/clients/inst_upgrade_urls.rb new/yast2-installation-5.0.2/src/lib/installation/clients/inst_upgrade_urls.rb --- old/yast2-installation-5.0.1/src/lib/installation/clients/inst_upgrade_urls.rb 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/src/lib/installation/clients/inst_upgrade_urls.rb 2023-11-01 13:05:55.000000000 +0100 @@ -19,6 +19,7 @@ require "yast" require "installation/upgrade_repo_manager" +require "y2packager/medium_type" require "y2packager/repository" Yast.import "GetInstArgs" @@ -297,6 +298,9 @@ # do not save the changes in the test mode Pkg.SourceSaveAll unless test? + # reload repositories only when using the openSUSE Leap media + Pkg.SourceLoad if Y2Packager::MediumType.standard? + # clear the old repositories Y2Packager::OriginalRepositorySetup.instance.repositories.clear end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/src/lib/installation/upgrade_repo_manager.rb new/yast2-installation-5.0.2/src/lib/installation/upgrade_repo_manager.rb --- old/yast2-installation-5.0.1/src/lib/installation/upgrade_repo_manager.rb 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/src/lib/installation/upgrade_repo_manager.rb 2023-11-01 13:05:55.000000000 +0100 @@ -125,6 +125,12 @@ update_urls process_repos remove_services + + # reload the package manager to activate the changes + Yast::Pkg.SourceSaveAll + Yast::Pkg.SourceFinishAll + Yast::Pkg.SourceRestore + Yast::Pkg.SourceLoad end private @@ -167,6 +173,9 @@ def update_urls new_urls.each do |repo, url| repo.url = url + + # if the repository will be enabled refresh the content + repo.refresh(force: true) if status_map[repo] == :enabled end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/test/lib/clients/inst_upgrade_urls_test.rb new/yast2-installation-5.0.2/test/lib/clients/inst_upgrade_urls_test.rb --- old/yast2-installation-5.0.1/test/lib/clients/inst_upgrade_urls_test.rb 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/test/lib/clients/inst_upgrade_urls_test.rb 2023-11-01 13:05:55.000000000 +0100 @@ -36,6 +36,8 @@ allow(Yast::UI).to receive(:QueryWidget) allow(Yast::UI).to receive(:ChangeWidget) allow(Yast::Pkg).to receive(:SourceSaveAll) + allow(Y2Packager::MediumType).to receive(:standard?).and_return(true) + allow(Yast::Pkg).to receive(:SourceLoad) end describe "#main" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-5.0.1/test/lib/upgrade_repo_manager_test.rb new/yast2-installation-5.0.2/test/lib/upgrade_repo_manager_test.rb --- old/yast2-installation-5.0.1/test/lib/upgrade_repo_manager_test.rb 2023-09-05 14:15:15.000000000 +0200 +++ new/yast2-installation-5.0.2/test/lib/upgrade_repo_manager_test.rb 2023-11-01 13:05:55.000000000 +0100 @@ -97,6 +97,10 @@ allow(repo1).to receive(:disable!) allow(repo1).to receive(:delete!) allow(Yast::Pkg).to receive(:ServiceDelete) + allow(Yast::Pkg).to receive(:SourceSaveAll) + allow(Yast::Pkg).to receive(:SourceFinishAll) + allow(Yast::Pkg).to receive(:SourceRestore) + allow(Yast::Pkg).to receive(:SourceLoad) end it "removes the selected repositories" do