[Treepkg-commits] r473 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 9 16:26:21 CET 2010


Author: bricks
Date: 2010-11-09 16:26:20 +0100 (Tue, 09 Nov 2010)
New Revision: 473

Modified:
   trunk/treepkg/packager.py
Log:
provide a possibility to use rules from a git repo


Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py	2010-11-09 14:54:55 UTC (rev 472)
+++ trunk/treepkg/packager.py	2010-11-09 15:26:20 UTC (rev 473)
@@ -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)
 



More information about the Treepkg-commits mailing list