mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
49a411edd4
commit
c9d1536777
|
@ -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:
|
||||
if ourversion not in versions and ourbranch != devbranch:
|
||||
w.write(" '%s': '%s',\n" % (ourversion, ourversion))
|
||||
else:
|
||||
w.write(line)
|
||||
|
|
Loading…
Reference in New Issue
Block a user