diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 744740144..c09315f44 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -125,7 +125,7 @@ class BuildList < ActiveRecord::Base def place_build #XML-RPC params: project_name, project_version, plname, arch, bplname, update_type, build_requires, id_web - self.status = BuildServer.add_build_list project.name, project_version, pl.unixname, arch.name, bpl.unixname, update_type, build_requires, id + self.status = BuildServer.add_build_list project.name, project_version, pl.unixname, arch.name, (pl_id == bpl_id ? '' : bpl.unixname), update_type, build_requires, id self.status = BUILD_PENDING if self.status == 0 save end