Origin: Debian
Bug: https://github.com/juce-framework/JUCE/issues/1148
Last-Update: 2022-11-10
Python's os.listdir() returns the entries in an undefined order,
which in turn makes the generated documentation unreproducible.
this patch just sorts the entries returned by os.listdir()
Last-Update: 2022-11-10
Gbp-Pq: Name reproducible_docs.patch
juce_modules = args.subdirs.split(",")
else:
juce_modules = []
- for item in os.listdir(args.source_dir):
+ for item in sorted(os.listdir(args.source_dir)):
if os.path.isdir(os.path.join(args.source_dir, item)):
juce_modules.append(item)
# Create a list of the directories in the module that we can use as
# subgroups and create the Doxygen group hierarchy string.
- dir_contents = os.listdir(module_path)
+ dir_contents = sorted(os.listdir(module_path))
# Ignore "native" folders as these are excluded by doxygen.
try:
dir_contents.remove("native")