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:
parent
4ef0a4e9ad
commit
a6f188af10
1 changed files with 1 additions and 2 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue