On 07/26/2016 11:13 AM, Burton, Ross wrote:

On 26 July 2016 at 08:39, <[email protected] <mailto:[email protected]>> 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
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to