@@ -88,15 +88,6 @@ print(f"activereleases calculated to be {activereleases}")
print(f"devbranch calculated to be {devbranch}")
print(f"ltsseries calculated to be {ltsseries}")
-# 3.4 onwards doesn't have poky version
-# Early 3.4 release docs do reference it though
-poky_mapping = {
- "3.4" : "26.0",
- "3.3" : "25.0",
- "3.2" : "24.0",
- "3.1" : "23.0",
-}
-
ourversion = None
ourseries = None
ourbranch = None
@@ -237,6 +228,15 @@ replacements = {
"BITBAKE_SERIES" : bitbakeversion,
}
+# 3.4 onwards doesn't have poky version
+# Early 3.4 release docs do reference it though
+poky_mapping = {
+ "3.4": "26.0",
+ "3.3": "25.0",
+ "3.2": "24.0",
+ "3.1": "23.0",
+}
+
if release_series[ourseries] in poky_mapping:
pokyversion = poky_mapping[release_series[ourseries]]
if ourversion != release_series[ourseries]:
The poky_mapping dict isn't used until after the replacements dict is created. Move it's definitions to where it's used. Also fix a codestyle issue while we're at it (whitespace before ":"). Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/set_versions.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)