Send blank string when no product tar attached. Refs #2261

This commit is contained in:
Pavel Chipiga 2011-11-30 13:57:48 +02:00
parent eed248676d
commit b4864e19fb
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class ProductBuilder
def self.create_product pbl # product_build_list def self.create_product pbl # product_build_list
self.client(pbl.product.platform.distrib_type). self.client(pbl.product.platform.distrib_type).
call('create_product', pbl.id.to_s, pbl.product.platform.name, pbl.product.ks, pbl.product.menu, call('create_product', pbl.id.to_s, pbl.product.platform.name, pbl.product.ks, pbl.product.menu, pbl.product.build_script,
pbl.product.build_script, pbl.product.counter, [], "#{pbl.base_url}#{pbl.product.tar.url}") pbl.product.counter, [], pbl.product.tar.exists? ? "#{pbl.base_url}#{pbl.product.tar.url}" : '')
end end
end end