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-10-23 13:24:10 +02:00
committed by Stefan Hansson
parent 4ef0a4e9ad
commit a6f188af10
+1 -2
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():