From a6f188af10f57b41f5f92532e4730ce34e337cae Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 26 Sep 2024 20:25:25 +0200 Subject: [PATCH] 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. --- .ci/lib/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci/lib/common.py b/.ci/lib/common.py index 6c21aaab2..cd6115133 100755 --- a/.ci/lib/common.py +++ b/.ci/lib/common.py @@ -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():