Skip to content

Commit

Permalink
return boolean in selecting addon products call
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Sep 29, 2014
1 parent a665e6c commit dd5630c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/registration/sw_mgmt.rb
Expand Up @@ -349,6 +349,7 @@ def self.each_repo(repo_aliases, &block)
end

# select products for new added extensions/modules
# @return [Boolean] true on success
def self.select_addon_products
addon_services = ::Registration::Storage::Cache.instance.addon_services
log.info "New addon services: #{addon_services}"
Expand All @@ -357,7 +358,7 @@ def self.select_addon_products
acc.concat(::Registration::SwMgmt.service_repos(service))
end

return if new_repos.empty?
return true if new_repos.empty?

products = Pkg.ResolvableProperties("", :product, "")
products.select! do |product|
Expand All @@ -368,12 +369,9 @@ def self.select_addon_products

log.info "Products to install: #{products}"

products.each do |product|
Pkg.ResolvableInstall(product, :product)
end
products.all?{|product| Pkg.ResolvableInstall(product, :product)}
end


private_class_method :each_repo
end
end
Expand Down

0 comments on commit dd5630c

Please sign in to comment.