mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #849 from cecini/updatepy
fix update.py for compatible
This commit is contained in:
commit
2449dc4b1a
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ def run_cargo_raze():
|
||||||
|
|
||||||
def write_licenses():
|
def write_licenses():
|
||||||
# dump 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:
|
with open("licenses.json", "wb") as file:
|
||||||
file.write(result)
|
file.write(result)
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ exports_files(["licenses.json"])
|
||||||
|
|
||||||
def update_crates_bzl():
|
def update_crates_bzl():
|
||||||
output_lines = []
|
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+")
|
reqwest_build_prefix = re.compile(r"/remote:BUILD.reqwest-\d+\.\d+\.\d+")
|
||||||
|
|
||||||
with open("crates.bzl") as file:
|
with open("crates.bzl") as file:
|
||||||
|
|
Loading…
Reference in a new issue