Skip to content
Snippets Groups Projects
Unverified Commit 17ef8c71 authored by Oliver Smith's avatar Oliver Smith
Browse files

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.
parent 05d6b493
Branches
No related tags found
No related merge requests found
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment