summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorDaisuke Yamane <daisuke.yamane@cybertrust.co.jp>2020-02-22 06:17:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-22 23:57:26 +0000
commit2070441607c1315bf3a161968963d7ca979199a0 (patch)
tree8182526715c23730638f6bdda10b516429bc2cb1 /bitbake/lib/bb/utils.py
parent8b7523f13ea0ebb86fdcbc3b5d39408c1f6d45ef (diff)
downloadpoky-2070441607c1315bf3a161968963d7ca979199a0.tar.gz
bitbake: 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. (Bitbake rev: 6a0b6dd17c6d842960d448114b252e92c55dea33) Signed-off-by: Daisuke Yamane <daisuke.yamane@cybertrust.co.jp> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 47805d02cf..5f5767c1da 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -864,7 +864,7 @@ def copyfile(src, dest, newmtime = None, sstat = None):
864 if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]): 864 if destexists and not stat.S_ISDIR(dstat[stat.ST_MODE]):
865 os.unlink(dest) 865 os.unlink(dest)
866 os.symlink(target, dest) 866 os.symlink(target, dest)
867 #os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID]) 867 os.lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
868 return os.lstat(dest) 868 return os.lstat(dest)
869 except Exception as e: 869 except Exception as e:
870 logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e)) 870 logger.warning("copyfile: failed to create symlink %s to %s (%s)" % (dest, target, e))