summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r--bitbake/lib/bb/process.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py
index 7c797852ed..1c07f2d9b7 100644
--- a/bitbake/lib/bb/process.py
+++ b/bitbake/lib/bb/process.py
@@ -128,10 +128,13 @@ def _logged_communicate(pipe, log, input, extrafiles):
128 pipe.stderr.close() 128 pipe.stderr.close()
129 return ''.join(outdata), ''.join(errdata) 129 return ''.join(outdata), ''.join(errdata)
130 130
131def run(cmd, input=None, log=None, extrafiles=[], **options): 131def run(cmd, input=None, log=None, extrafiles=None, **options):
132 """Convenience function to run a command and return its output, raising an 132 """Convenience function to run a command and return its output, raising an
133 exception when the command fails""" 133 exception when the command fails"""
134 134
135 if not extrafiles:
136 extrafiles = []
137
135 if isinstance(cmd, basestring) and not "shell" in options: 138 if isinstance(cmd, basestring) and not "shell" in options:
136 options["shell"] = True 139 options["shell"] = True
137 140