help = description
@staticmethod
- def add_arguments(parser, _config):
+ def add_arguments(parser, _):
"""Adds arguments to the parser. Called from [sub_]main."""
parser.add_argument('submission', help='submission or group')
parser.add_argument('-c', '--comment', help='comment', default='')
def _resolve_submissions(obs, name, target):
"""Get list of submissions with meta. Resolves submitgroups."""
- project, meta, _bresults = get_project_by_name(obs, name, target)
+ project, meta = get_project_by_name(obs, name, target)[:2]
if name.startswith('submitgroup'):
for subm in meta['submissions']:
- sprj, smeta, _bresults = get_project_by_name(obs, subm, target)
+ sprj, smeta = get_project_by_name(obs, subm, target)[:2]
yield subm, sprj, smeta
else:
yield name, project, meta
help = description
@staticmethod
- def add_arguments(parser, _config):
+ def add_arguments(parser, _):
"""Adds arguments to the parser. Called from [sub_]main."""
parser.add_argument('cmp_project', help='Compared OBS project')
parser.add_argument('cmp_manifest', help='Manifest of compared project')
def check_build_results(bresults):
"""Check if build targets are published."""
- for subm, _prj, results in bresults:
+ for subm, _, results in bresults:
for target, res in results.iteritems():
if res['state'] != 'published' or res['code'] != 'published':
if res['packages']:
def info(obs, name, target):
"""Print detailed info about submission or submitgroup."""
is_group = name.startswith('submitgroup/')
- _project, meta, build_results = get_project_by_name(obs, name, target)
+ _, meta, build_results = get_project_by_name(obs, name, target)
print
if is_group:
help = description
@staticmethod
- def add_arguments(parser, _config):
+ def add_arguments(parser, _):
"""
Add arguments to the parser. Called from [sub_]main.
Set defaults for arguments from config.
help = description
@staticmethod
- def add_arguments(parser, _config):
+ def add_arguments(parser, _):
"""Adds arguments to the parser. Called from [sub_]main."""
parser.add_argument('submission', help='submission or group')
parser.add_argument('-c', '--comment', help='comment', default='')
help = description
@staticmethod
- def add_arguments(parser, _config):
+ def add_arguments(parser, _):
"""Adds arguments to the parser. Called from [sub_]main."""
parser.add_argument('group', help='group of submissions')