diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-27 17:29:10 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-27 17:29:10 (GMT) |
commit | 8a64d0947bb9a3afcc303015ee4bd8835be03a62 (patch) | |
tree | 456d39919b824464b5d9cb24115ba9728915d7bd /devbot/build.py | |
parent | 6ab02c1f23631f8e87615610ed811bc4bf31accc (diff) |
Refactor to avoid circular dependency
Diffstat (limited to 'devbot/build.py')
-rw-r--r-- | devbot/build.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/devbot/build.py b/devbot/build.py index 9193b04..d2631db 100644 --- a/devbot/build.py +++ b/devbot/build.py @@ -12,6 +12,7 @@ from devbot import environ from devbot import state from devbot import utils from devbot import release +from devbot import git _builders = {} _distributors = {} @@ -42,7 +43,7 @@ def pull(lazy=False): to_pull = [] for module in config.load_modules(): - git_module = module.get_git_module() + git_module = git.get_module(module) if not lazy or not os.path.exists(git_module.local): to_pull.append(module) @@ -111,7 +112,7 @@ def clean(): for module in config.load_modules(): if not module.out_of_source: - if module.get_git_module().clean(): + if git.get_module(module).clean(): print "* Cleaning %s" % module.name @@ -135,7 +136,7 @@ def _unlink_libtool_files(): def _pull_module(module): print "* Pulling %s" % module.name - git_module = module.get_git_module() + git_module = git.get_module(module) try: git_module.update() @@ -191,7 +192,7 @@ def _distribute_autotools(module): filename = makefile["DIST_ARCHIVES"] version = makefile["VERSION"] - git_module = module.get_git_module() + git_module = git.get_module(module) version_revision = None description = git_module.describe() |