Skip to content

Commit

Permalink
[api] fix api crash on updating product files
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 9, 2012
1 parent 094e94a commit 146dfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/helpers/product_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def update_product_autopackages( project )
if b_pkg_index.has_key?(pkg) and not f_pkg_index.has_key?(pkg)
# new autopackage, import in database
p = project.packages.new(name: pkg)
p.update_from_xml(b_pkg_index[pkg].dump_xml)
p.update_from_xml(Xmlhash.parse(b_pkg_index[pkg].dump_xml))
p.store
elsif f_pkg_index.has_key?(pkg) and not b_pkg_index.has_key?(pkg)
# autopackage was removed, remove from database
Expand Down

0 comments on commit 146dfa3

Please sign in to comment.