Re: [OE-core] [PATCH 1/3] oeqa/utils/commands.py: Add oeqa_copy function

2016-07-26 Thread Mariano Lopez
On 07/26/2016 11:13 AM, Burton, Ross wrote: On 26 July 2016 at 08:39, > wrote: +def oeqa_copy(src, dst): +""" +Copy files and symlinks trying to preserve metadata. +""" + +shutil.copy2(src, dst, follow_symlinks=Fal

Re: [OE-core] [PATCH 1/3] oeqa/utils/commands.py: Add oeqa_copy function

2016-07-26 Thread Burton, Ross
On 26 July 2016 at 08:39, 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? Ross -- _

[OE-core] [PATCH 1/3] oeqa/utils/commands.py: Add oeqa_copy function

2016-07-26 Thread mariano . lopez
From: Mariano Lopez This new function is just a call to shutil.copy2() with follow_symlinks set to False. This function is needed when using shutil.copytree() to preserve the symlinks. [YOCTO #9932] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/commands.py | 9 + 1 file changed