[OE-core] [PATCH 4/5] lib/oe/path.py: Use shutil.rmtree if the path we wish to remove is a directory.

Chris Larson clarson at kergoth.com
Thu Jan 10 14:15:15 UTC 2013


On Thu, Jan 10, 2013 at 1:50 AM, Martin Ertsaas <martiert at gmail.com> wrote:

> On mac, os.unlink can not be done to remove directories, and so we have to
> explicitly use shutil.rmtree instead to support mac.
>

As pointed out for the bitbake patch, the functions can already handle this
case if you pass recurse=True, and mac isn't at all special in this context.
-- 
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130110/fedc56b3/attachment-0002.html>


More information about the Openembedded-core mailing list