This commit is contained in:
Vokhmin Alexey V 2014-04-09 01:16:36 +04:00
parent 35a2be81cf
commit 4a3068ce42
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class Platform < ActiveRecord::Base
next false unless product
pbl = product.product_build_lists.for_status(ProductBuildList::BUILD_COMPLETED).recent.first
next false unless pbl
result = pbl.results.results.find{ |r| r['file_name'] =~ /-#{arch}.tar.gz$/ }
result = pbl.results.find{ |r| r['file_name'] =~ /-#{arch}.tar.gz$/ }
result.present? ? result['sha1'] : false
end
end