diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-01-04 13:03:24 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-01-05 11:22:38 -0700 |
commit | 01f582992f64dc77d54df0312b9eecb566821f16 (patch) | |
tree | 50206de57de1c0003635f9773510e2346e50f084 /lib/bb/process.py | |
parent | c8ff0fd3e9f050a668f1a069cf37ee37db3664fa (diff) | |
download | bitbake-contrib-01f582992f64dc77d54df0312b9eecb566821f16.tar.gz |
process: simplify the log option for run
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/process.py')
-rw-r--r-- | lib/bb/process.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bb/process.py b/lib/bb/process.py index 0e19cbe8d..808cd60f9 100644 --- a/lib/bb/process.py +++ b/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: - del options['log'] - try: pipe = Popen(cmd, **options) except OSError, exc: |