Auto merge of #6232 - frewsxcv:update-submodules-dry, r=jdm

This might allow us to merge #5648

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6232)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-31 20:40:21 -05:00
commit 1d19338a93

View file

@ -224,15 +224,7 @@ class CommandBase(object):
if self.context.bootstrapped:
return
subprocess.check_call(["git", "submodule", "--quiet", "sync", "--recursive"])
submodules = subprocess.check_output(["git", "submodule", "status"])
for line in submodules.split('\n'):
components = line.strip().split(' ')
if len(components) > 1 and components[0].startswith(('-', '+')):
module_path = components[1]
subprocess.check_call(["git", "submodule", "update",
"--init", "--recursive",
"--", module_path])
Registrar.dispatch("update-submodules", context=self.context)
if not self.config["tools"]["system-rust"] and \
not path.exists(path.join(