diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/license.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index c714da31f4..db0fc51fea 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -189,9 +189,11 @@ def copy_license_files(lic_files_paths, destdir): | |||
189 | os.chown(dst,0,0) | 189 | os.chown(dst,0,0) |
190 | except OSError as err: | 190 | except OSError as err: |
191 | import errno | 191 | import errno |
192 | if err.errno == errno.EPERM: | 192 | if err.errno in (errno.EPERM, errno.EINVAL): |
193 | # suppress "Operation not permitted" error, as | 193 | # Suppress "Operation not permitted" error, as |
194 | # sometimes this function is not executed under pseudo | 194 | # sometimes this function is not executed under pseudo. |
195 | # Also ignore "Invalid argument" errors that happen in | ||
196 | # some (unprivileged) container environments (no root). | ||
195 | pass | 197 | pass |
196 | else: | 198 | else: |
197 | raise | 199 | raise |