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>
This commit is contained in:
Richard Purdie 2022-03-23 12:38:00 +00:00
parent c9d1536777
commit e0a812b2fe

View File

@ -220,7 +220,7 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch
version = version + "." + versions[-1]
versions.append(version)
w.write(" '%s': '%s',\n" % (version, version))
if ourversion not in versions and ourbranch != devbranch:
if ourversion not in versions and ourseries != devbranch:
w.write(" '%s': '%s',\n" % (ourversion, ourversion))
else:
w.write(line)