diff options
Diffstat (limited to 'meta/classes-global/sanity.bbclass')
-rw-r--r-- | meta/classes-global/sanity.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index 192582b82e..d1452967fc 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass | |||
@@ -733,14 +733,14 @@ def check_sanity_version_change(status, d): | |||
733 | status.addresult("TMPDIR is setuid, please don't build in a setuid directory") | 733 | status.addresult("TMPDIR is setuid, please don't build in a setuid directory") |
734 | 734 | ||
735 | # Check that a user isn't building in a path in PSEUDO_IGNORE_PATHS | 735 | # Check that a user isn't building in a path in PSEUDO_IGNORE_PATHS |
736 | pseudoignorepaths = d.getVar('PSEUDO_IGNORE_PATHS', expand=True).split(",") | 736 | pseudoignorepaths = (d.getVar('PSEUDO_IGNORE_PATHS', expand=True) or "").split(",") |
737 | workdir = d.getVar('WORKDIR', expand=True) | 737 | workdir = d.getVar('WORKDIR', expand=True) |
738 | for i in pseudoignorepaths: | 738 | for i in pseudoignorepaths: |
739 | if i and workdir.startswith(i): | 739 | if i and workdir.startswith(i): |
740 | status.addresult("You are building in a path included in PSEUDO_IGNORE_PATHS " + str(i) + " please locate the build outside this path.\n") | 740 | status.addresult("You are building in a path included in PSEUDO_IGNORE_PATHS " + str(i) + " please locate the build outside this path.\n") |
741 | 741 | ||
742 | # Check if PSEUDO_IGNORE_PATHS and paths under pseudo control overlap | 742 | # Check if PSEUDO_IGNORE_PATHS and paths under pseudo control overlap |
743 | pseudoignorepaths = d.getVar('PSEUDO_IGNORE_PATHS', expand=True).split(",") | 743 | pseudoignorepaths = (d.getVar('PSEUDO_IGNORE_PATHS', expand=True) or "").split(",") |
744 | pseudo_control_dir = "${D},${PKGD},${PKGDEST},${IMAGEROOTFS},${SDK_OUTPUT}" | 744 | pseudo_control_dir = "${D},${PKGD},${PKGDEST},${IMAGEROOTFS},${SDK_OUTPUT}" |
745 | pseudocontroldir = d.expand(pseudo_control_dir).split(",") | 745 | pseudocontroldir = d.expand(pseudo_control_dir).split(",") |
746 | for i in pseudoignorepaths: | 746 | for i in pseudoignorepaths: |