summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Whiting <jpwhiting@kde.org>2013-06-22 03:19:00 (GMT)
committerHéctor Orón Martínez <hector.oron@collabora.co.uk>2014-01-14 10:57:13 (GMT)
commit0156fc259bd8e57f01f5861f59af20e99e43914b (patch)
treeb0a2e4c0854a6e7a341e3797483f0faa256e38b8
parent2ed0bc9cfeff55db820124211034fdbcb8430783 (diff)
downloadopen-build-service-0156fc259bd8e57f01f5861f59af20e99e43914b.tar.gz
open-build-service-0156fc259bd8e57f01f5861f59af20e99e43914b.tar.xz
When branching a package, copy repository linkedbuild, block, and rebuild attributes.
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
-rw-r--r--src/api/app/helpers/maintenance_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/app/helpers/maintenance_helper.rb b/src/api/app/helpers/maintenance_helper.rb
index 1a71b35..a257b7f 100644
--- a/src/api/app/helpers/maintenance_helper.rb
+++ b/src/api/app/helpers/maintenance_helper.rb
@@ -823,7 +823,7 @@ module MaintenanceHelper
end
if add_repositories
unless tprj.repositories.find_by_name(repoName)
- trepo = tprj.repositories.create :name => repoName
+ trepo = tprj.repositories.create( :name => repoName, :rebuild => repo.rebuild, :linkedbuild => repo.linkedbuild, :block => repo.block)
trepo.architectures = repo.architectures
trepo.path_elements.create(:link => repo, :position => 1)
trigger = "manual"