Updates ./mach update-cargo for new path changes

Also fixed a bug if run with no arguments.
This commit is contained in:
Matthew Rasmus 2014-12-08 13:16:20 -08:00
parent feabaf34ac
commit 63d1651cb9

View file

@ -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')]