[lorax] sort glob output before using it
Anne Mulhern
amulhern at redhat.com
Fri Dec 13 18:27:34 UTC 2013
----- Original Message -----
> From: "David Shea" <dshea at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Friday, December 13, 2013 1:22:36 PM
> Subject: Re: [lorax] sort glob output before using it
>
> 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.
w/ something in commit message explaining why?
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>
More information about the anaconda-patches
mailing list