diff options
| -rw-r--r-- | bitbake/lib/bb/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index c62d7bca4f..a4a559982c 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
| @@ -162,9 +162,9 @@ def run(cmd, input=None, log=None, extrafiles=None, **options): | |||
| 162 | stdout, stderr = _logged_communicate(pipe, log, input, extrafiles) | 162 | stdout, stderr = _logged_communicate(pipe, log, input, extrafiles) |
| 163 | else: | 163 | else: |
| 164 | stdout, stderr = pipe.communicate(input) | 164 | stdout, stderr = pipe.communicate(input) |
| 165 | if stdout: | 165 | if not stdout is None: |
| 166 | stdout = stdout.decode("utf-8") | 166 | stdout = stdout.decode("utf-8") |
| 167 | if stderr: | 167 | if not stderr is None: |
| 168 | stderr = stderr.decode("utf-8") | 168 | stderr = stderr.decode("utf-8") |
| 169 | 169 | ||
| 170 | if pipe.returncode != 0: | 170 | if pipe.returncode != 0: |
