[OE-core] [PATCH v4] patch.bbclass: increase security
Chris Larson
clarson at kergoth.com
Sun Sep 16 20:04:41 UTC 2012
On Fri, Sep 14, 2012 at 7:25 AM, Constantin Musca
<constantinx.musca at intel.com> wrote:
> - shutil.rmtree(process_tmpdir)
> + bb.utils.remove(process_tmpdir, True)
In the future, I'd suggest leveraging the ability to pass arguments by
name to clarify the meaning of the boolean argument:
bb.utils.remove(process_tmpdir, recurse=True).
This makes it a bit more clear when reading the code in the future.
--
Christopher Larson
More information about the Openembedded-core
mailing list