[oe-commits] [bitbake] branch master updated: lib/bb/utils.py: Preserve ownership of symlink

git at git.openembedded.org git at git.openembedded.org
Sun Feb 23 00:00:18 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

The following commit(s) were added to refs/heads/master by this push:
     new 6a0b6dd  lib/bb/utils.py: Preserve ownership of symlink
6a0b6dd is described below

commit 6a0b6dd17c6d842960d448114b252e92c55dea33
Author: Daisuke Yamane <daisuke.yamane at cybertrust.co.jp>
AuthorDate: Sat Feb 22 06:17:14 2020 +0000

    lib/bb/utils.py: Preserve ownership of symlink
    
    Yocto Bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13806
    
    Uncomment lchown() to preserve ownership of symlink.
    
    Signed-off-by: Daisuke Yamane <daisuke.yamane at cybertrust.co.jp>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 47805d0..5f5767c 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -864,7 +864,7 @@ def copyfile(src, dest, newmtime = None, sstat = None):
             if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]):
                 os.unlink(dest)
             os.symlink(target, dest)
-            #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
+            os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
             return os.lstat(dest)
         except Exception as e:
             logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list