[PATCH 1/2] Add installimg command for use in the templates

Brian C. Lane bcl at redhat.com
Wed Nov 5 15:15:22 UTC 2014


On Wed, Nov 05, 2014 at 07:26:09AM +0100, Vratislav Podzimek wrote:
> On Tue, 2014-11-04 at 19:23 -0800, Brian C. Lane wrote:
> > +        if not os.path.isdir(self._in(srcdir)) or os.listdir(self._in(srcdir)) == 0:
> I believe you meant 'len(os.listdir()) == 0' above. You could replace it
> with 'not os.listdir()', but that looks a bit confusing.

Crap, yes, that's exactly what I meant. Thanks for catching that.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list