Auto merge of #13537 - GuillaumeGomez:mach_update, r=Wafflespeanut

Ensure cargo is up to date before running update crate command

Fixes #13526

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13537)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-01 14:13:05 -05:00 committed by GitHub
commit 45cc847a00

View file

@ -87,6 +87,8 @@ class MachCommands(CommandBase):
print("flag or update all packages with --all-packages (-a) flag")
sys.exit(1)
self.ensure_bootstrapped()
for cargo_path in CARGO_PATHS:
with cd(cargo_path):
print(cargo_path)