Skip to content

Commit

Permalink
Merge pull request #63 from yast/adding_repo_fix
Browse files Browse the repository at this point in the history
fixed wrong method name causing crash when adding repositories (bnc#875412)
  • Loading branch information
lslezak committed May 2, 2014
2 parents 15fe6b0 + ee27838 commit bb83874
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-registration.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 2 12:01:45 UTC 2014 - lslezak@suse.cz

- ask user to import an unknown SSL certificate (bnc#874745)
- fixed wrong method name causing crash when adding repositories
(bnc#875412)

-------------------------------------------------------------------
Wed Apr 30 12:26:52 UTC 2014 - lslezak@suse.cz

Expand Down
2 changes: 1 addition & 1 deletion src/lib/registration/sw_mgmt.rb
Expand Up @@ -191,7 +191,7 @@ def self.service_repos(product_services, only_updates: false)
data
end

service_names = product_services.map(&:services).flatten.map(&:name)
service_names = product_services.map(&:sources).flatten.map(&:name)
log.info "Added services: #{service_names.inspect}"

# select only repositories belonging to the product services
Expand Down
2 changes: 1 addition & 1 deletion test/sw_mgmt_spec.rb
Expand Up @@ -62,7 +62,7 @@
before do
service = double
expect(service).to receive(:name).and_return(service_name)
expect(services).to receive(:services).and_return([service])
expect(services).to receive(:sources).and_return([service])

expect(yast_pkg).to receive(:SourceGetCurrent).with(false).and_return(repos.keys)
repos.each do |id, repo|
Expand Down

0 comments on commit bb83874

Please sign in to comment.