explicit -d/--delete argument for verifybinaries/verify.py #26985

pull scgbckbone wants to merge 1 commits into bitcoin:master from scgbckbone:explicit_delete_arg_verifybinaries changing 2 files +15 −10
  1. scgbckbone commented at 11:07 pm on January 28, 2023: none

    Use argparse (python buil-in) so that delete argument is explicit, instead of ‘specify anything as the second parameter’ user has to use -d/--delete to remove binaries after the check. Explicit is always better than implicit and I myself few times fat-fingered something behind the command and it deleted binaries that I wanted to keep. With this patch you get error for random things:

    0usage: verify.py [-h] [-d] VERSION
    1verify.py: error: unrecognized arguments: d
    

    With argparse verify.py now has a nice help message that is handy for scripts:

    0usage: verify.py [-h] [-d] VERSION
    1
    2Download and verify bitcoin binaries.
    3
    4positional arguments:
    5  VERSION       Target version.
    6
    7optional arguments:
    8  -h, --help    show this help message and exit
    9  -d, --delete  Delete the downloaded binaries afterwards.
    

    I aslo fixed error in README which previously stated that If an error occurs the return value is 2. but correct is that it returns >= 2

  2. explicit `-d/--delete` argument for verifybinaries/verify.py e2dd2d5d30
  3. DrahtBot commented at 11:07 pm on January 28, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #23020 (fix: contrib: allow multi-sig binary verification by jamesob)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. fanquake commented at 10:33 am on February 16, 2023: member
    Thanks, however this script needs much more work, to make it usable/useful, and this is already underway in #23020. Maybe you’d be interested in reviewing there instead? Going to close this for now.
  5. fanquake closed this on Feb 16, 2023

  6. scgbckbone commented at 12:23 pm on February 16, 2023: none
    didn’t know about that, will have a look - thanks
  7. bitcoin locked this on Feb 16, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 03:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me