diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-10-03 09:33:26 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-03 17:53:57 +0100 |
commit | 3f90a5b12d8039ecb6c5dcc3b8f4c0cfe6324166 (patch) | |
tree | 782a9775b29bdefd7e4f019b7bfd69e267bf2d13 /documentation | |
parent | 4c4c2e2bb20adcd9a3ea4a07948a3cacddc509c3 (diff) | |
download | poky-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-x | documentation/set_versions.py | 2 |
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] | |||
172 | previousseries = series[series.index(ourseries)+1:] or [""] | 172 | previousseries = series[series.index(ourseries)+1:] or [""] |
173 | lastlts = [k for k in previousseries if k in ltsseries] or "dunfell" | 173 | lastlts = [k for k in previousseries if k in ltsseries] or "dunfell" |
174 | 174 | ||
175 | latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], capture_output=True, text=True).stdout | 175 | latestreltag = subprocess.run(["git", "describe", "--abbrev=0", "--tags", "--match", "yocto-*"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stdout |
176 | latestreltag = latestreltag.strip() | 176 | latestreltag = latestreltag.strip() |
177 | if latestreltag: | 177 | if latestreltag: |
178 | if latestreltag.startswith("yocto-"): | 178 | if latestreltag.startswith("yocto-"): |