CI: common.run_pmbootstrap: use simple check=True (MR 5633)

Use check=True instead of running check_returncode() afterwards, it has
the same effect and is shorter.
This commit is contained in:
Oliver Smith 2024-09-26 20:25:25 +02:00 committed by Stefan Hansson
parent 4ef0a4e9ad
commit a6f188af10
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD

View file

@ -47,8 +47,7 @@ def commit_message_has_string(needle):
def run_pmbootstrap(parameters):
""" Run pmbootstrap with the pmaports dir as --aports """
cmd = ["pmbootstrap", "--aports", get_pmaports_dir()] + parameters
result = subprocess.run(cmd, universal_newlines=True)
result.check_returncode()
subprocess.run(cmd, universal_newlines=True, check=True)
def get_upstream_branch():