changeset 510:1f04bd88fca3

provide a possibility to use rules from a git repo
author Bjoern Ricks <bricks@intevation.de>
date Tue, 09 Nov 2010 15:26:20 +0000
parents c4288095887f
children e5b66539f893
files treepkg/packager.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Tue Nov 09 14:54:55 2010 +0000
+++ b/treepkg/packager.py	Tue Nov 09 15:26:20 2010 +0000
@@ -492,7 +492,7 @@
                  rules_svn_url=None, deb_build_options="", pkg_basename="",
                  changelog_msg_template="Update to r%(revision)s",
                  svn_subset=(), svn_externals=(), git_branch="", git_url="",
-                 os="", status_hook=""):
+                 os="", status_hook="", rules_git_url=None):
         self.name = name
 
         # Convert the builder_cls option to a class
@@ -543,6 +543,10 @@
             repo = SvnRepository(rules_svn_url)
             self.rules_working_copy = SvnWorkingCopy(repo, self.debian_dir,
                                                      logger=logging)
+        elif rules_git_url:
+            repo = GitRepository(rules_git_url)
+            self.rules_working_copy = GitWorkingCopy(repo, self.debian_dir,
+                                                     loggger=logging)
         else:
             self.rules_working_copy = ManualWorkingCopy(self.debian_dir)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)