Skip to content

Commit

Permalink
Only interate over the add_on_products collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Moravec committed Jan 17, 2014
1 parent b2f3d8f commit 98446ad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/clients/add-on_auto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def main
elsif @func == "Write"
@sources = {}

AddOnProduct.add_on_products = Builtins.maplist(
AddOnProduct.add_on_products
) do |prod|
AddOnProduct.add_on_products.each do |prod|
media = Ops.get_string(prod, "media_url", "")
pth = Ops.get_string(prod, "product_dir", "/")
if String.StartsWith(media, "relurl://")
Expand Down Expand Up @@ -232,7 +230,7 @@ def main
# Possibility to set name in control file, bnc #433981
if Builtins.haskey(prod, "name")
name = Ops.get_string(prod, "name", "")
Builtins.y2milestone("Preferred name: %1", name)
Builtins.y2milestone("Preferred name: %1", name)
# Or use the one returned by Pkg::RepositoryScan
else
repos_at_url = Pkg.RepositoryScan(media)
Expand Down Expand Up @@ -294,7 +292,7 @@ def main
Builtins.y2milestone("add-on_auto finished")
Builtins.y2milestone("----------------------------------------")

deep_copy(@ret)
deep_copy(@ret)

# EOF
end
Expand Down

0 comments on commit 98446ad

Please sign in to comment.