[OE-core] [PATCH 1/2] image.py: avoid mkdir race when building multiple images

Mike Crowe mac at mcrowe.com
Thu Nov 19 11:50:44 UTC 2015


On Thursday 19 November 2015 at 11:23:47 +0000, Richard Purdie wrote:
> On Thu, 2015-11-19 at 11:20 +0000, Mike Crowe wrote:
> > The sysroot directory will already exist so let's just try and make the
> > imgdata directory and cope with the exception thrown if it already
> > exists. This stops the race being fatal.
 
> How about using bb.utils.mkdirhier() which already does this?

I wasn't aware of that function. It's much simpler. I've updated the patch.

Thanks.

Mike.



More information about the Openembedded-core mailing list