diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-02-22 17:26:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 12:54:22 +0000 |
commit | 19118a1408f32bb24d95ab3d7d7faed58cbae900 (patch) | |
tree | 40aedab77cbcc134e2cc919aa683cc06e8e1d9c4 /scripts | |
parent | ef603f41b5df4772bb598ec9d389dd5f858592af (diff) | |
download | openembedded-core-19118a1408f32bb24d95ab3d7d7faed58cbae900.tar.gz openembedded-core-19118a1408f32bb24d95ab3d7d7faed58cbae900.tar.bz2 openembedded-core-19118a1408f32bb24d95ab3d7d7faed58cbae900.zip |
license.bbclass: run chown only under pseudo
The copy_license_files() function in license.bbclass is called in two
different contexts. First, it is run as part of the do_populate_lic
task. In addition, it is called from do_package task when
LICENSE_CREATE_PACKAGE is enabled. The function has code that changes
the owner of license files to root which is meant only to happend in the
latter case - i.e. under do_package which is run under pseudo.
Previously, the code was blindly always running chown and just ignored
errors that happened when running from do_populate_lic. This patch
changes it to be more intelligent, only doing chown when running under
pseudo.
[YOCTO #10897]
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions