From 3f90a5b12d8039ecb6c5dcc3b8f4c0cfe6324166 Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Fri, 3 Oct 2025 09:33:26 +0200 Subject: set_versions.py: fix subprocess.run call for older distros Like in 28850c974a38 ("set_versions.py: use backward-compatible python argument in run"), replace the capture_output options by Python <3.7 compatible ones. (From yocto-docs rev: 6e1f4c18a13f369423599529a6960da5e3947d01) Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- documentation/set_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'documentation/set_versions.py') diff --git a/documentation/set_versions.py b/documentation/set_versions.py index b8dd4b1b90..be05ef323f 100755 --- a/documentation/set_versions.py +++ b/documentation/set_versions.py @@ -172,7 +172,7 @@ series = [k for k in release_series] previousseries = series[series.index(ourseries)+1:] or [""] lastlts = [k for k in previousseries if k in ltsseries] or "dunfell" -latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], capture_output=True, text=True).stdout +latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stdout latestreltag = latestreltag.strip() if latestreltag: if latestreltag.startswith("yocto-"): -- cgit v1.2.3-54-g00ecf