mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
mach: Avoid python error when there's no cargo cache.
This commit is contained in:
parent
451c52e18d
commit
458879b2cd
1 changed files with 9 additions and 8 deletions
|
@ -366,6 +366,7 @@ class MachCommands(CommandBase):
|
||||||
elif os.path.isdir(path.join(git_db_dir, d)):
|
elif os.path.isdir(path.join(git_db_dir, d)):
|
||||||
packages["git"][crate_name]["exist"].append(("del", d, ""))
|
packages["git"][crate_name]["exist"].append(("del", d, ""))
|
||||||
|
|
||||||
|
if crates_src_dir:
|
||||||
for d in os.listdir(crates_src_dir):
|
for d in os.listdir(crates_src_dir):
|
||||||
crate_name = re.sub(r"\-\d+(\.\d+){1,3}.+", "", d)
|
crate_name = re.sub(r"\-\d+(\.\d+){1,3}.+", "", d)
|
||||||
if not packages["crates"].get(crate_name, False):
|
if not packages["crates"].get(crate_name, False):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue