From e0ff5eb254a6ef52574775327dacacc6e6caeacf Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 13 Dec 2013 09:33:02 -0800 Subject: [PATCH] sort glob output before using it --- share/runtime-postinstall.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index ec4bbd58..93ea12b5 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -3,7 +3,7 @@ <%page args="root, basearch, libdir, configdir"/> <% -PYTHONDIR = glob("usr/"+libdir+"/python?.?")[0] +PYTHONDIR = sorted(glob("usr/"+libdir+"/python?.?"))[0] stubs = ("list-harddrives", "raidstart", "raidstop") configdir = configdir + "/common" %>