change regexp that finds cached chroot archives

This commit is contained in:
DuratarskeyK 2016-04-17 15:20:42 +04:00
parent 1ec141495b
commit 7571352be1
1 changed files with 1 additions and 1 deletions

View File

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