diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/license.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index a7f377361c..ba95c9ac84 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -350,6 +350,16 @@ def copy_license_files(lic_files_paths, destdir): os.remove(dst) if os.access(src, os.W_OK) and (os.stat(src).st_dev == os.stat(destdir).st_dev): os.link(src, dst) + try: + os.chown(dst,0,0) + except OSError as err: + import errno + if err.errno == errno.EPERM: + # suppress "Operation not permitted" error, as + # sometimes this function is not executed under pseudo + pass + else: + raise else: shutil.copyfile(src, dst) except Exception as e: |