summaryrefslogtreecommitdiffstats
path: root/documentation/set_versions.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 11:16:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 12:08:56 +0000
commitf7d853366470d1342e962c9d7164683a40dc0d7e (patch)
tree4bd3380d999e3336b3c7be96bed76ff465888900 /documentation/set_versions.py
parentd51fb3c8b950f504351b3642986d1a0be629c398 (diff)
downloadpoky-f7d853366470d1342e962c9d7164683a40dc0d7e.tar.gz
set_versions: Handle dev branch in switchers correctly
The dev branch is being displayed in switchers under two different headings, 4.0.999 and dev (4.0). Add an additional conditional to fix that. (From yocto-docs rev: 569815ac290f53a17330e53fb46c4870d8d247d2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/set_versions.py')
-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 9f0d794292..7a5f336115 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -220,7 +220,7 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch
220 version = version + "." + versions[-1] 220 version = version + "." + versions[-1]
221 versions.append(version) 221 versions.append(version)
222 w.write(" '%s': '%s',\n" % (version, version)) 222 w.write(" '%s': '%s',\n" % (version, version))
223 if ourversion not in versions: 223 if ourversion not in versions and ourbranch != devbranch:
224 w.write(" '%s': '%s',\n" % (ourversion, ourversion)) 224 w.write(" '%s': '%s',\n" % (ourversion, ourversion))
225 else: 225 else:
226 w.write(line) 226 w.write(line)