summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-10-03 09:33:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-03 17:53:57 +0100
commit3f90a5b12d8039ecb6c5dcc3b8f4c0cfe6324166 (patch)
tree782a9775b29bdefd7e4f019b7bfd69e267bf2d13 /documentation
parent4c4c2e2bb20adcd9a3ea4a07948a3cacddc509c3 (diff)
downloadpoky-3f90a5b12d8039ecb6c5dcc3b8f4c0cfe6324166.tar.gz
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 <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rwxr-xr-xdocumentation/set_versions.py2
1 files changed, 1 insertions, 1 deletions
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]
172previousseries = series[series.index(ourseries)+1:] or [""] 172previousseries = series[series.index(ourseries)+1:] or [""]
173lastlts = [k for k in previousseries if k in ltsseries] or "dunfell" 173lastlts = [k for k in previousseries if k in ltsseries] or "dunfell"
174 174
175latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], capture_output=True, text=True).stdout 175latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stdout
176latestreltag = latestreltag.strip() 176latestreltag = latestreltag.strip()
177if latestreltag: 177if latestreltag:
178 if latestreltag.startswith("yocto-"): 178 if latestreltag.startswith("yocto-"):