Skip to content

Commit

Permalink
[api] fix more of my stupid copy&paste programming
Browse files Browse the repository at this point in the history
Unfortunately build status is hard to test during test suite as we don't build ;(
  • Loading branch information
coolo committed Sep 17, 2013
1 parent b3d3584 commit faba7cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/app/models/package_build_status.rb
Expand Up @@ -152,7 +152,7 @@ def check_everbuilt(srep, arch)
code: 'lastfailures')
return unless hist
hist.elements('jobhist') do |jh|
if jh['@verifymd5'] == @verifymd5 || jh['@srcmd5'] == @srcmd5
if jh['verifymd5'] == @verifymd5 || jh['srcmd5'] == @srcmd5
@everbuilt = true
end
end
Expand All @@ -168,7 +168,7 @@ def check_everbuilt(srep, arch)

# going through the job history to check if it built and if yes, succeeded
hist.elements('jobhist') do |jh|
next unless jh['@verifymd5'] == @srcmd5 || jh['@srcmd5'] == @srcmd5
next unless jh['verifymd5'] == @srcmd5 || jh['srcmd5'] == @srcmd5
@everbuilt = true
if jh['code'] == 'succeeded' || jh['code'] == 'unchanged'
@buildcode ='succeeded'
Expand All @@ -183,6 +183,6 @@ def gather_md5sums
package: @pkg.name,
rev: @srcmd5,
view: :info)
@verifymd5 = cdir['@verifymd5']
@verifymd5 = cdir['verifymd5']
end
end

0 comments on commit faba7cd

Please sign in to comment.