]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sync-docs: fix selection menu when opening 'latest' man
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 May 2025 01:02:01 +0000 (02:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 May 2025 10:54:01 +0000 (11:54 +0100)
'devel' will always sort first, so the highest version is the second
entry, not the first one

tools/sync-docs.py

index ab10413c3a9adfeaf3ae812089c9910ec5b2df80..0a14108bfc0de2d00456ef3c5447fa5bce13b2cd 100755 (executable)
@@ -26,7 +26,7 @@ $(document).ready(function() {
         $.each( data, function(_, version) {
             if (version == dirname) {
                 items.push( "<option selected value='" + version + "'>" + "systemd " + version + "</option>");
-            } else if (dirname == "latest" && version == data[0]) {
+            } else if (dirname == "latest" && version == data[1]) {
                 items.push( "<option selected value='" + version + "'>" + "systemd " + version + "</option>");
             } else {
                 items.push( "<option value='" + version + "'>" + "systemd " + version + "</option>");