Skip to content

Commit

Permalink
[webui] Cleanup get_binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent b0f5f32 commit 1c0015e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ def get_issue_sum(tracker, issueid)

def get_binaries
@binarylist = []
@binary_list = Buildresult.find(project: params[:project], view: 'binarylist')
@binary_list.to_hash.elements('result') do |r|
r.elements('binarylist') do |l|
l.elements('binary') do |b|
next if ["rpmlint.log", "updateinfo.xml"].include?(b["filename"])
@binarylist << b['filename'].sub(/-[^-]*-[^-]*.rpm$/, '')
binary_list = Buildresult.find(project: params[:project], view: 'binarylist')
binary_list.to_hash.elements('result') do |result|
result.elements('binarylist') do |list|
list.elements('binary') do |bin|
next if ["rpmlint.log", "updateinfo.xml"].include?(bin["filename"])
@binarylist << bin['filename'].sub(/-[^-]*-[^-]*.rpm$/, '')
end
end
end
Expand Down

0 comments on commit 1c0015e

Please sign in to comment.