From 1fa02d2ad239cd7e67e8907f7033da21146c5628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Wed, 1 Nov 2023 09:45:43 +0100 Subject: [PATCH] Use new Y2Packager::Repository.refresh method --- package/yast2-installation.spec | 8 ++++---- src/lib/installation/upgrade_repo_manager.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/yast2-installation.spec b/package/yast2-installation.spec index eff9c03ef..03600aa42 100644 --- a/package/yast2-installation.spec +++ b/package/yast2-installation.spec @@ -27,8 +27,8 @@ Source1: YaST2-Second-Stage.service 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: pciutils 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 --git a/src/lib/installation/upgrade_repo_manager.rb b/src/lib/installation/upgrade_repo_manager.rb index 6496bd7da..dbec96fe3 100644 --- a/src/lib/installation/upgrade_repo_manager.rb +++ b/src/lib/installation/upgrade_repo_manager.rb @@ -175,7 +175,7 @@ def update_urls repo.url = url # if the repository will be enabled refresh the content - Yast::Pkg.SourceForceRefreshNow(repo.repo_id) if status_map[repo] == :enabled + repo.refresh(force: true) if status_map[repo] == :enabled end end