Sort the conditionals list so they always run in the same order (#870)

This commit is contained in:
Jim Zajkowski
2018-10-16 13:25:20 -04:00
committed by Greg Neagle
parent ce5ed7563b
commit 6af274bd61

View File

@@ -674,7 +674,7 @@ def get_conditions():
except (OSError, IOError):
pass
if os.path.exists(conditionalscriptdir):
for conditionalscript in osutils.listdir(conditionalscriptdir):
for conditionalscript in sorted(osutils.listdir(conditionalscriptdir)):
if conditionalscript.startswith('.'):
# skip files that start with a period
continue