[lorax] sort glob output before using it

David Shea dshea at redhat.com
Fri Dec 13 18:22:36 UTC 2013


On 12/13/2013 12:51 PM, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> ---
>   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 ec4bbd5..93ea12b 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"
>   %>
Ack.


More information about the anaconda-patches mailing list