diff options
author | Matthew Rasmus <mattr@zzntd.com> | 2014-12-08 13:16:20 -0800 |
---|---|---|
committer | Matthew Rasmus <mattr@zzntd.com> | 2014-12-08 13:16:20 -0800 |
commit | 63d1651cb90b825c8f963dd82f238691766cb038 (patch) | |
tree | 0a14dad1778957a1df14f92305b7f2d491079909 /python/servo/devenv_commands.py | |
parent | feabaf34acfc41c0976acdff5e4df15a135d1b09 (diff) | |
download | servo-63d1651cb90b825c8f963dd82f238691766cb038.tar.gz servo-63d1651cb90b825c8f963dd82f238691766cb038.zip |
Updates `./mach update-cargo` for new path changes
Also fixed a bug if run with no arguments.
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index e031a957935..8948bffb447 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -30,8 +30,11 @@ class MachCommands(CommandBase): @CommandArgument( 'params', default=None, nargs='...', help='Command-line arguments to be passed through to cargo update') - def update_cargo(self, params): - cargo_paths = [path.join('.'), + def update_cargo(self, params=None): + if not params: + params = [] + + cargo_paths = [path.join('components', 'servo'), path.join('ports', 'cef'), path.join('ports', 'android', 'glut_app')] |