[oe-commits] [bitbake] branch master-next updated: lib/bb/utils.py: Preserve ownership of symlink
git at git.openembedded.org
git at git.openembedded.org
Sat Feb 22 18:11:49 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
The following commit(s) were added to refs/heads/master-next by this push:
new 799cf68 lib/bb/utils.py: Preserve ownership of symlink
799cf68 is described below
commit 799cf6854b7c52407ee8639fabdb27262eb5f8ca
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