[SCM] ci-tooling packaging branch, master, updated. 7dc28f237217141387ce425ddad74bc7e628b4d9
Rohan Garg
rohangarg-guest at moszumanska.debian.org
Thu Dec 11 15:12:16 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=7dc28f2
The following commit has been merged in the master branch:
commit 7dc28f237217141387ce425ddad74bc7e628b4d9
Author: Rohan Garg <rohan at kde.org>
Date: Thu Dec 11 16:11:44 2014 +0100
Make sure we use the writable URL so that we can auto commit
ABI symbol updates and some other misc. stuff.
---
data/projects.json | 2 +-
lib/projects.rb | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/data/projects.json b/data/projects.json
index 4e88063..3cc19eb 100644
--- a/data/projects.json
+++ b/data/projects.json
@@ -27,7 +27,7 @@
"custom_ci" : [
{
"type" : "github",
- "git_host" : "http://github.com/",
+ "git_host" : "git at github.com:",
"org" : "maui-debian",
"repos" : [ "all" ]
}
diff --git a/lib/projects.rb b/lib/projects.rb
index 104e09e..dd2d92d 100644
--- a/lib/projects.rb
+++ b/lib/projects.rb
@@ -15,8 +15,9 @@ class Project
attr_reader :series_branches
attr_reader :autopkgtest
+ attr_reader :packaging_scm
- def initialize(name, component, host='debian')
+ def initialize(name, component, url_base='git.debian.org:/git/pkg-kde/')
@name = name
@component = component
@upstream_scm = nil
@@ -25,6 +26,7 @@ class Project
@dependees = []
@series_branches = []
@autopkgtest = false
+ @packaging_scm = url_base + component + '/' + name
# FIXME: git dir needs to be set somewhere, somehow, somewhat, lol, kittens?
Dir.mkdir('git') unless Dir.exist?('git')
@@ -32,7 +34,7 @@ class Project
unless File.exist?(name)
i = 0
while true and (i+=1) < 5
- break if system("git clone #{host}:#{component}/#{name}")
+ break if system("git clone #{@packaging_scm}")
end
end
Dir.chdir(name) do
@@ -118,7 +120,7 @@ class Projects < Array
puts repos
repos.each do |repo|
- self << Project.new(repo, custom_ci['org'], custom_ci['type'])
+ self << Project.new(repo, custom_ci['org'], custom_ci['git_host'])
end
end
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list