mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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(
|
@CommandArgument(
|
||||||
'params', default=None, nargs='...',
|
'params', default=None, nargs='...',
|
||||||
help='Command-line arguments to be passed through to cargo update')
|
help='Command-line arguments to be passed through to cargo update')
|
||||||
def update_cargo(self, params):
|
def update_cargo(self, params=None):
|
||||||
cargo_paths = [path.join('.'),
|
if not params:
|
||||||
|
params = []
|
||||||
|
|
||||||
|
cargo_paths = [path.join('components', 'servo'),
|
||||||
path.join('ports', 'cef'),
|
path.join('ports', 'cef'),
|
||||||
path.join('ports', 'android', 'glut_app')]
|
path.join('ports', 'android', 'glut_app')]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue