diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 2e3aa37d01..ed46636372 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -51,12 +51,14 @@ class LocalhostBEController(BuildEnvironmentController): | |||
51 | self.pokydirname = None | 51 | self.pokydirname = None |
52 | self.islayerset = False | 52 | self.islayerset = False |
53 | 53 | ||
54 | def _shellcmd(self, command, cwd = None): | 54 | def _shellcmd(self, command, cwd=None, nowait=False): |
55 | if cwd is None: | 55 | if cwd is None: |
56 | cwd = self.be.sourcedir | 56 | cwd = self.be.sourcedir |
57 | 57 | ||
58 | logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command)) | 58 | logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command)) |
59 | p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | 59 | p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
60 | if nowait: | ||
61 | return | ||
60 | (out,err) = p.communicate() | 62 | (out,err) = p.communicate() |
61 | p.wait() | 63 | p.wait() |
62 | if p.returncode: | 64 | if p.returncode: |