[SCM] ci-tooling packaging branch, master, updated. 406fe619eec7efd5f55d059e5f6764e17a621cf3

Harald Sitter apachelogger-guest at moszumanska.debian.org
Mon Nov 30 11:24:45 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=f0c5b80

The following commit has been merged in the master branch:
commit f0c5b80e9b4ecc4d44ef05f8b3f4745d23668c51
Author: Harald Sitter <sitter at kde.org>
Date:   Mon Nov 30 12:14:56 2015 +0100

    add a class method on project to divert the default url temporarly for tests
---
 lib/projects.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/projects.rb b/lib/projects.rb
index cb46289..005fec1 100644
--- a/lib/projects.rb
+++ b/lib/projects.rb
@@ -46,6 +46,11 @@ class Project
   # Packaging SCM SCM instance
   attr_reader :packaging_scm_scm
 
+  class << self
+    attr_accessor :default_url
+    @default_url = 'git.debian.org:/git/pkg-kde'
+  end
+
   # Init
   # @param name name of the project (this is equal to the name of the packaging
   #   repo)
@@ -58,7 +63,7 @@ class Project
   # @param type the type of integration project (unstable/stable..).
   #   This indicates whether to look for kubuntu_unstable or kubuntu_stable
   #   NB: THIS is mutually exclusive with branch!
-  def initialize(name, component, url_base = 'git.debian.org:/git/pkg-kde',
+  def initialize(name, component, url_base = self.class.default_url,
                  type: nil,
                  branch: "kubuntu_#{type}")
     variable_deprecation(:type, :branch) unless type.nil?

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list