Skip to content

Commit

Permalink
Use new Y2Packager::Repository.refresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 1, 2023
1 parent 5a8ff1f commit 1fa02d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package/yast2-installation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/installation/upgrade_repo_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1fa02d2

Please sign in to comment.