diff options
Diffstat (limited to 'meta/classes-global')
-rw-r--r-- | meta/classes-global/insane.bbclass | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 36b139a20d..efcfa08d2e 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -434,9 +434,8 @@ def package_qa_check_buildpaths(path, name, d, elf): | |||
434 | explicitly ignored. | 434 | explicitly ignored. |
435 | """ | 435 | """ |
436 | import stat | 436 | import stat |
437 | global cpath | ||
438 | # Ignore symlinks/devs/fifos | 437 | # Ignore symlinks/devs/fifos |
439 | mode = cpath.lstat(path).st_mode | 438 | mode = os.lstat(path).st_mode |
440 | if stat.S_ISLNK(mode) or stat.S_ISBLK(mode) or stat.S_ISFIFO(mode) or stat.S_ISCHR(mode) or stat.S_ISSOCK(mode): | 439 | if stat.S_ISLNK(mode) or stat.S_ISBLK(mode) or stat.S_ISFIFO(mode) or stat.S_ISCHR(mode) or stat.S_ISSOCK(mode): |
441 | return | 440 | return |
442 | 441 | ||
@@ -1050,7 +1049,7 @@ def package_qa_check_host_user(path, name, d, elf): | |||
1050 | return | 1049 | return |
1051 | 1050 | ||
1052 | try: | 1051 | try: |
1053 | stat = cpath.lstat(path) | 1052 | stat = os.lstat(path) |
1054 | except OSError as exc: | 1053 | except OSError as exc: |
1055 | import errno | 1054 | import errno |
1056 | if exc.errno != errno.ENOENT: | 1055 | if exc.errno != errno.ENOENT: |