diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/build.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 3138fbc166..f511caeb95 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -104,26 +104,24 @@ class TaskInvalid(TaskBase): class LogTee(object): - def __init__(self, logger, *files): - self.files = files + def __init__(self, logger, outfile): + self.outfile = outfile self.logger = logger + self.name = self.outfile.name def write(self, string): self.logger.plain(string) - for f in self.files: - f.write(string) + self.outfile.write(string) def __enter__(self): - for f in self.files: - f.__enter__() + self.outfile.__enter__() return self def __exit__(self, *excinfo): - for f in self.files: - f.__exit__(*excinfo) + self.outfile.__exit__(*excinfo) def __repr__(self): - return '<LogTee {0}>'.format(', '.join(repr(f.name) for f in self.files)) + return '<LogTee {0}>'.format(self.name) def exec_func(func, d, dirs = None, logfile = NULL): |