From 7571352be13ffdf6d7af9685199fdb92808bd603 Mon Sep 17 00:00:00 2001 From: DuratarskeyK Date: Sun, 17 Apr 2016 15:20:42 +0400 Subject: [PATCH] change regexp that finds cached chroot archives --- app/models/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/platform.rb b/app/models/platform.rb index dba42a5f6..3da37b658 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -269,7 +269,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.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 end end