mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Updates ./mach update-cargo
for new path changes
Also fixed a bug if run with no arguments.
This commit is contained in:
parent
feabaf34ac
commit
63d1651cb9
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