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

git at git.openembedded.org git at git.openembedded.org
Fri Mar 6 17:26:44 UTC 2020


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

rpurdie pushed a commit to branch 1.44
in repository bitbake.

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

commit 6836184ef5220488a1127413c7d2e523fc37e2e9
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 d65265c..0b6bb04 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -851,7 +851,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