This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 721467da Replace sha512sum with shasum (#1716)
721467da is described below
commit 721467dae1b9893c1c1baf74f3e07a4a029e83d8
Author: tison <[email protected]>
AuthorDate: Thu Aug 31 10:05:02 2023 +0800
Replace sha512sum with shasum (#1716)
---
x.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x.py b/x.py
index 4641c983..08641028 100755
--- a/x.py
+++ b/x.py
@@ -262,9 +262,9 @@ def package_source(release_version: str,
release_candidate_number: Optional[int]
run(gpg, '--detach-sign', '--armor', tarball)
# 4. Generate sha512 checksum
- sha512sum = find_command('sha512sum', msg='sha512sum is required for
source packaging')
+ shasum = find_command('shasum', msg='shasum is required for source
packaging')
with open(f'{tarball}.sha512', 'w+') as f:
- run(sha512sum, tarball, stdout=f)
+ run(shasum, '-a', '512', tarball, stdout=f)
def test_cpp(dir: str, rest: List[str]) -> None: