diff options
author | George Burgess IV <gbiv@google.com> | 2023-04-13 12:46:29 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-17 17:34:06 +0000 |
commit | a152ab4433a44d07fdca86d25e87227a27ee7d4e (patch) | |
tree | 821c705978ece597e06599757ebf5db6554949bf /pgo_tools_rust | |
parent | 9e882c1bd501a0c4573a9d1aa602e22250f971d3 (diff) | |
download | toolchain-utils-a152ab4433a44d07fdca86d25e87227a27ee7d4e.tar.gz |
pgo_rust: use gsutil
gsutil.py was removed from our $PATH a while ago. We're meant to use
gsutil now.
BUG=b:215615637
TEST=./pgo_rust.py generate
Change-Id: I862484d3f8ad64f1b8908222d1b3c81960960e8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4422323
Reviewed-by: Bob Haarman <inglorion@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'pgo_tools_rust')
-rwxr-xr-x | pgo_tools_rust/pgo_rust.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pgo_tools_rust/pgo_rust.py b/pgo_tools_rust/pgo_rust.py index 22fadbd2..3b56cd77 100755 --- a/pgo_tools_rust/pgo_rust.py +++ b/pgo_tools_rust/pgo_rust.py @@ -214,7 +214,7 @@ def download_unpack_crate(*, crate_name: str, crate_version: str): local_path / f"{crate_name}-{crate_version}", ignore_errors=True ) with chdir(local_path): - run(["gsutil.py", "cp", f"gs:/{gs_path}", "."]) + run(["gsutil", "cp", f"gs:/{gs_path}", "."]) run(["xz", "-d", f"{filename_no_extension}.tar.xz"]) run(["tar", "xvf", f"{filename_no_extension}.tar"]) @@ -330,9 +330,9 @@ def upload_file( *, source: Path, dest: PurePosixPath, public_read: bool = False ): if public_read: - run(["gsutil.py", "cp", "-a", "public-read", source, f"gs:/{dest}"]) + run(["gsutil", "cp", "-a", "public-read", source, f"gs:/{dest}"]) else: - run(["gsutil.py", "cp", source, f"gs:/{dest}"]) + run(["gsutil", "cp", source, f"gs:/{dest}"]) def maybe_download_crate(*, crate_name: str, crate_version: str): |