mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
mach: Remove redundant with(crate_dir).
This commit is contained in:
parent
f2314c10ca
commit
5dfa144c5d
1 changed files with 2 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
||||||
# except according to those terms.
|
# except according to those terms.
|
||||||
|
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
from os import path, getcwd, listdir
|
from os import path, listdir
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -50,15 +50,8 @@ class MachCommands(CommandBase):
|
||||||
params[1:1] = ['--package', 'geckoservo']
|
params[1:1] = ['--package', 'geckoservo']
|
||||||
|
|
||||||
self.set_use_stable_rust()
|
self.set_use_stable_rust()
|
||||||
crate_dir = path.join('ports', 'geckolib')
|
|
||||||
else:
|
|
||||||
crate_dir = path.join('ports', 'servo')
|
|
||||||
|
|
||||||
build_start = time()
|
build_start = time()
|
||||||
if self.context.topdir == getcwd():
|
|
||||||
with cd(crate_dir):
|
|
||||||
status = call(['cargo'] + params, env=env)
|
|
||||||
else:
|
|
||||||
status = call(['cargo'] + params, env=env)
|
status = call(['cargo'] + params, env=env)
|
||||||
elapsed = time() - build_start
|
elapsed = time() - build_start
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue