summaryrefslogtreecommitdiffstats
path: root/documentation/set_versions.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 12:38:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 12:38:30 +0000
commite0a812b2fea76b785de345893901676f1b9683cf (patch)
tree7d3deb43dc7e7c12fde88f7b4e9a28d617bf14d8 /documentation/set_versions.py
parentc9d1536777755bdd870cc0a9da2bf9dff87eed41 (diff)
downloadpoky-e0a812b2fea76b785de345893901676f1b9683cf.tar.gz
set_versions: Correct devbranch comparision
Correct the previous commit since we need to compare against ourseries rather than ourbranch since devbranch would match against the series, not the branch. (From yocto-docs rev: 57f5ce5fe427e5387f6ac85225137463e51e5643) 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 7a5f336115..1ab946fe61 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 and ourbranch != devbranch: 223 if ourversion not in versions and ourseries != 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)