diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb index a8a96d187..b8fc2e206 100644 --- a/app/controllers/products_controller.rb +++ b/app/controllers/products_controller.rb @@ -31,7 +31,7 @@ class ProductsController < ApplicationController def build can_perform? @product if @product flash[:notice] = t('flash.product.build_started') - ProductBuilder.create_product @product.id, @product.platform.unixname, @product.ks, @product.menu, @product.build, @product.counter, [] + ProductBuilder.create_product @product.id, @product.platform.unixname, @product.ks, @product.menu, @product.build, @product.counter, [], "http://#{request.host_with_port}#{@product.tar.url}" redirect_to :action => :show end diff --git a/lib/product_builder.rb b/lib/product_builder.rb index 2bde41076..29a6aebfe 100644 --- a/lib/product_builder.rb +++ b/lib/product_builder.rb @@ -9,7 +9,7 @@ class ProductBuilder @@client ||= XMLRPC::Client.new3(:host => APP_CONFIG['product_builder_ip'], :port => APP_CONFIG['product_builder_port'], :path => APP_CONFIG['product_builder_path']) end - def self.create_product product_id, path, kstemplate, menuxml, build, counter, packages - self.client.call('create_product', product_id.to_s, path, kstemplate, menuxml, build, counter, packages) + def self.create_product product_id, path, kstemplate, menuxml, build, counter, packages, tar_url + self.client.call('create_product', product_id.to_s, path, kstemplate, menuxml, build, counter, packages, tar_url) end end