diff options
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r-- | bitbake/lib/bb/process.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index fd7f28d7a0..808cd60f92 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py @@ -84,17 +84,13 @@ def _logged_communicate(pipe, log, input): log.write(data) return ''.join(outdata), ''.join(errdata) -def run(cmd, input=None, **options): +def run(cmd, input=None, log=None, **options): """Convenience function to run a command and return its output, raising an exception when the command fails""" if isinstance(cmd, basestring) and not "shell" in options: options["shell"] = True - log = options.get('log') - if 'log' in options: - del options['log'] - try: pipe = Popen(cmd, **options) except OSError, exc: |