Commit f4e4808b authored by Marco Mariani's avatar Marco Mariani

build output with ''.join

parent d3e7de70
...@@ -101,15 +101,16 @@ class SlapPopen(subprocess.Popen): ...@@ -101,15 +101,16 @@ class SlapPopen(subprocess.Popen):
logger = logging.getLogger('SlapProcessManager') logger = logging.getLogger('SlapProcessManager')
# XXX-Cedric: this algorithm looks overkill for simple logging. # XXX-Cedric: this algorithm looks overkill for simple logging.
self.output = '' output_lines = []
while True: while True:
line = self.stdout.readline() line = self.stdout.readline()
if line == '' and self.poll() != None: if line == '' and self.poll() != None:
break break
self.output = self.output + line output_lines.append(line)
if line[-1:] == '\n': if line[-1:] == '\n':
line = line[:-1] line = line[:-1]
logger.info(line) logger.info(line)
self.output = ''.join(output_lines)
def getSoftwareUrlHash(url): def getSoftwareUrlHash(url):
return md5(url).hexdigest() return md5(url).hexdigest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment