mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
auto merge of #4288 : mttr/servo/mach_update_cargo_fix, r=jdm
Also fixed a bug if run with no arguments.
This commit is contained in:
commit
1458bb4397
1 changed files with 5 additions and 2 deletions
|
@ -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')]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue