Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/build.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-29 22:26:08 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-29 22:34:33 (GMT)
commit59df9bd4d22715b03d1b765321021a59ebc9366b (patch)
treebe1075a9e3a3c2d4908735e948e0d73d690ba9dd /devbot/build.py
parent48c02f188784d65bd501a907e572e041ed61dc15 (diff)
Git clean not out-of-source modules instead of removing
Diffstat (limited to 'devbot/build.py')
-rw-r--r--devbot/build.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/devbot/build.py b/devbot/build.py
index e958078..8740927 100644
--- a/devbot/build.py
+++ b/devbot/build.py
@@ -8,7 +8,6 @@ import time
from devbot import command
from devbot import config
from devbot import environ
-from devbot import git
from devbot import state
from devbot import utils
@@ -78,7 +77,8 @@ def clean():
for module in config.load_modules():
if not module.out_of_source:
- _rmtree(module.get_source_dir())
+ if module.get_git_module().clean():
+ print "Cleaned %s git repository." % module.name
def _unlink_libtool_files():
def func(arg, dirname, fnames):
@@ -91,9 +91,7 @@ def _pull_module(module):
print "\n=== Pulling %s ===\n" % module.name
try:
- git_module = git.Module(config.get_source_dir(), module.name,
- module.repo, module.tag)
- git_module.update()
+ module.get_git_module().update()
except subprocess.CalledProcessError:
return False