Skip to content

Commit af3a75a

Browse files
donaldhNipaLocal
authored andcommitted
tools/net/ynl-gen-rst: Sort the index of generated netlink specs
The index of netlink specs was being generated unsorted. Sort the output before generating the index entries. Signed-off-by: Donald Hunter <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Reviewed-by: Breno Leitao <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 95d99c8 commit af3a75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/net/ynl/ynl-gen-rst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def generate_main_index_rst(output: str) -> None:
383383

384384
index_dir = os.path.dirname(output)
385385
logging.debug("Looking for .rst files in %s", index_dir)
386-
for filename in os.listdir(index_dir):
386+
for filename in sorted(os.listdir(index_dir)):
387387
if not filename.endswith(".rst") or filename == "index.rst":
388388
continue
389389
lines.append(f" {filename.replace('.rst', '')}\n")

0 commit comments

Comments
 (0)