contrib: fixup verifybinaries example docs

Followup to #27358, fixing up the example command docs.
This commit is contained in:
fanquake 2023-04-09 12:33:41 +02:00
parent 663a89cfed
commit e2e5683afe
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ See the `Config` object for various options.
Validate releases with default settings:
```sh
./contrib/verify-binaries/verify.py pub 22.0
./contrib/verify-binaries/verify.py pub 22.0-rc2
./contrib/verify-binaries/verify.py pub 22.0-rc3
```
Get JSON output and don't prompt for user input (no auto key import):
@ -63,8 +63,8 @@ threshold of at least 10 trusted signatures:
If you only want to download the binaries of certain platform, add the corresponding suffix, e.g.:
```sh
./contrib/verify-binaries/verify.py pub 22.0-osx
./contrib/verify-binaries/verify.py pub 22.0-rc2-win64
./contrib/verify-binaries/verify.py pub 24.0.1-darwin
./contrib/verify-binaries/verify.py pub 23.1-rc1-win64
```
If you do not want to keep the downloaded binaries, specify the cleanup option.

View File

@ -97,7 +97,7 @@ def bool_from_env(key, default=False) -> bool:
VERSION_FORMAT = "<major>.<minor>[.<patch>][-rc[0-9]][-platform]"
VERSION_EXAMPLE = "22.0-x86_64 or 0.21.0-rc2-osx"
VERSION_EXAMPLE = "22.0-x86_64 or 23.1-rc1-darwin"
def parse_version_string(version_str):
parts = version_str.split('-')