Skip to content

Commit

Permalink
Do not remove the installation repositories (bsc#1163081)
Browse files Browse the repository at this point in the history
... in the "Previously Used Repositories" step

- 4.2.71
  • Loading branch information
lslezak committed Mar 12, 2020
1 parent 0cc5361 commit 3ba39cc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def initialize
end

# Read and store the current repository/service setup.
def read
@repositories = Repository.all
# @param installation_repositories [Array<Y2Packager::Repository>]
def read(installation_repositories = [])
# skip the installation repositories, we need to keep them
aliases = installation_repositories.map(&:repo_alias)
@repositories = Repository.all.reject { |r| aliases.include?(r.repo_alias) }
@services = Service.all
log.info("Found #{repositories.size} repositories and #{services.size} services")
end
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 12 08:26:12 UTC 2020 - Ladislav Slezák <lslezak@suse.cz>

- Do not remove the installation repositories in the "Previously
Used Repositories" step (bsc#1163081)
- 4.2.71

-------------------------------------------------------------------
Fri Mar 6 13:26:57 UTC 2020 - David Diaz <dgonzalez@suse.com>

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


Name: yast2
Version: 4.2.70
Version: 4.2.71
Release: 0
Summary: YaST2 Main Package
License: GPL-2.0-only
Expand Down

0 comments on commit 3ba39cc

Please sign in to comment.