summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index ba95c9ac84..94be559f44 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -354,9 +354,11 @@ def copy_license_files(lic_files_paths, destdir):
354 os.chown(dst,0,0) 354 os.chown(dst,0,0)
355 except OSError as err: 355 except OSError as err:
356 import errno 356 import errno
357 if err.errno == errno.EPERM: 357 if err.errno in (errno.EPERM, errno.EINVAL):
358 # suppress "Operation not permitted" error, as 358 # Suppress "Operation not permitted" error, as
359 # sometimes this function is not executed under pseudo 359 # sometimes this function is not executed under pseudo.
360 # Also ignore "Invalid argument" errors that happen in
361 # some (unprivileged) container environments (no root).
360 pass 362 pass
361 else: 363 else:
362 raise 364 raise