fix update.py for compatible

This commit is contained in:
cecini 2020-12-15 08:09:11 +00:00
parent 77c9db5bba
commit aa715eee93

View File

@ -47,7 +47,7 @@ def run_cargo_raze():
def write_licenses():
# dump licenses
result = subprocess.check_output(["cargo", "license", "-j"], cwd="../rslib")
result = subprocess.check_output(["cargo-license", "-j"], cwd="../rslib")
with open("licenses.json", "wb") as file:
file.write(result)
@ -62,7 +62,7 @@ exports_files(["licenses.json"])
def update_crates_bzl():
output_lines = []
commit_re = re.compile('\s+commit = "([0-9a-f]+)",')
commit_re = re.compile(r'\s+commit = "([0-9a-f]+)",')
reqwest_build_prefix = re.compile(r"/remote:BUILD.reqwest-\d+\.\d+\.\d+")
with open("crates.bzl") as file: