From aa715eee9386cd0e90907deb1c99a07ede9c373b Mon Sep 17 00:00:00 2001 From: cecini Date: Tue, 15 Dec 2020 08:09:11 +0000 Subject: [PATCH] fix update.py for compatible --- cargo/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cargo/update.py b/cargo/update.py index d46d051ab..7ab683d67 100644 --- a/cargo/update.py +++ b/cargo/update.py @@ -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: