mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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(
|
@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