[oe-commits] [bitbake] branch 1.42 updated: lib/bb/utils.py: Preserve ownership of symlink
git at git.openembedded.org
git at git.openembedded.org
Fri Mar 6 17:26:43 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch 1.42
in repository bitbake.
The following commit(s) were added to refs/heads/1.42 by this push:
new 7f71262 lib/bb/utils.py: Preserve ownership of symlink
7f71262 is described below
commit 7f7126211170439ac1d7d72e980786ce0edb7bb7
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 7aaf930..95e73f2 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -855,7 +855,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