# HG changeset patch # User Bjoern Ricks # Date 1289316380 0 # Node ID 1f04bd88fca353eec2b3d4ea43060f83e261824d # Parent c4288095887f6785b7f6c4ce2b7dbaa2792cbeb8 provide a possibility to use rules from a git repo diff -r c4288095887f -r 1f04bd88fca3 treepkg/packager.py --- 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)