Skip to content

Commit e8c3233

Browse files
donaldhkuba-moo
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. Reviewed-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Breno Leitao <leitao@debian.org> Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Link: https://lore.kernel.org/r/20231215093720.18774-12-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6235b3d commit e8c3233

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)