Commit 78afc508 authored by Leo Iannacone's avatar Leo Iannacone

use success from args

parent 5481fea0
...@@ -139,17 +139,14 @@ class DebomaticModule_JSONLogger: ...@@ -139,17 +139,14 @@ class DebomaticModule_JSONLogger:
def post_build(self, args): def post_build(self, args):
status = self._get_package_status(args) status = self._get_package_status(args)
status['status'] = 'build' status['status'] = 'build'
status['success'] = False status['success'] = args['success']
status['tags'] = {} status['tags'] = {}
resultdir = os.path.join(args['directory'], 'pool', args['package']) resultdir = os.path.join(args['directory'], 'pool', args['package'])
for filename in os.listdir(resultdir): for filename in os.listdir(resultdir):
if filename.endswith('.dsc'): full_path = os.path.join(resultdir, filename)
status['success'] = True tag = LogParser(full_path).parse()
else: if tag:
full_path = os.path.join(resultdir, filename) status['tags'][filename] = tag
tag = LogParser(full_path).parse()
if tag:
status['tags'][filename] = tag
self._write_package_json(args, status) self._write_package_json(args, status)
self._append_json_logfile(args, status) self._append_json_logfile(args, status)
......
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