diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index e6b0f081e6..eaacae6cb1 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -444,12 +444,14 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): | |||
444 | Check for build paths inside target files and error if paths are not | 444 | Check for build paths inside target files and error if paths are not |
445 | explicitly ignored. | 445 | explicitly ignored. |
446 | """ | 446 | """ |
447 | import stat | ||
447 | # Ignore .debug files, not interesting | 448 | # Ignore .debug files, not interesting |
448 | if path.find(".debug") != -1: | 449 | if path.find(".debug") != -1: |
449 | return | 450 | return |
450 | 451 | ||
451 | # Ignore symlinks | 452 | # Ignore symlinks/devs/fifos |
452 | if os.path.islink(path): | 453 | mode = os.lstat(path).st_mode |
454 | 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): | ||
453 | return | 455 | return |
454 | 456 | ||
455 | tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8") | 457 | tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8") |