From 4366ce76f724f1743422d7a1d2b49c6aafaffb36 Mon Sep 17 00:00:00 2001 From: Alexey Nayden Date: Thu, 14 Apr 2011 15:57:52 +0400 Subject: [PATCH] hardcode fix? --- app/models/project.rb | 2 +- lib/build_server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 04d5c76b6..0cea88e5c 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -68,7 +68,7 @@ class Project < ActiveRecord::Base end def xml_rpc_destroy - result = BuildServer.delete_project unixname, platform.unixname, repository.unixname + result = BuildServer.delete_project unixname, repository.platform.unixname, repository.unixname if result == BuildServer::SUCCESS return true else diff --git a/lib/build_server.rb b/lib/build_server.rb index 3263cb2d1..6fe4b3da1 100644 --- a/lib/build_server.rb +++ b/lib/build_server.rb @@ -57,7 +57,7 @@ class BuildServer end def self.create_project name, platform_name, repo_name - self.client.call('create_project', name, platform_name, repo_name) + self.client.call('create_project', name, platform_name, repo_name + '/release') end def self.delete_project name, platform_name