[OE-core] [PATCH 1/3] oeqa/utils/commands.py: Add oeqa_copy function
Mariano Lopez
mariano.lopez at linux.intel.com
Tue Jul 26 17:34:47 UTC 2016
On 07/26/2016 11:13 AM, Burton, Ross wrote:
>
> On 26 July 2016 at 08:39, <mariano.lopez at linux.intel.com
> <mailto:mariano.lopez at linux.intel.com>> wrote:
>
> +def oeqa_copy(src, dst):
> + """
> + Copy files and symlinks trying to preserve metadata.
> + """
> +
> + shutil.copy2(src, dst, follow_symlinks=False)
>
>
> Why not just use shutil directly instead of having a wrapper function?
shutil.copytree didn't play nice with the symlinks, this is why I added
this function, nevertheless, I like Joshua's approach of use
oe.path.copytree(), so this function won't be needed.
>
> Ross
Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160726/607fb9a4/attachment-0002.html>
More information about the Openembedded-core
mailing list