The option was not used in the code and users don't complain, so let's
remove it.
Change-Id: I560cf4ec8210d41aa645883c7c82e1c97025096a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
-\-f, \-\-force
-.RS 2
-Force group creation for submissions without binary packages. Useful when grouping failed submissions for rejection.
-.RE
-
-.PP
\--noaggregate <regexp>
.RS 2
Do not aggregate binary packages matching regexp. This is useful to skip aggregates, propagated by OBS from target project to prerlease projects, e.g. qemu-accel-*, mic-bootstrap, etc.
\--noaggregate <regexp>
.RS 2
Do not aggregate binary packages matching regexp. This is useful to skip aggregates, propagated by OBS from target project to prerlease projects, e.g. qemu-accel-*, mic-bootstrap, etc.
# target project: for pkg, status in res['packages'] ...
# target project: for pkg, status in res['packages'] ...
-def check_binary_pkgs(obs, submissions, force=False, noaggregate=''):
+def check_binary_pkgs(obs, submissions, noaggregate=''):
"""
Check if submissions have common binary packages.
Check if binary packages exist.
"""
Check if submissions have common binary packages.
Check if binary packages exist.
def group_submissions(obs, submissions, target, comment,
def group_submissions(obs, submissions, target, comment,
- force=False, processes=0, noaggregate=''):
+ processes=0, noaggregate=''):
"""Group multiple submissions into one group."""
# find correspondent prerelease projects
info = {}
"""Group multiple submissions into one group."""
# find correspondent prerelease projects
info = {}
check_build_results(bresults)
# filter out conflicting submissions
check_build_results(bresults)
# filter out conflicting submissions
- filtered = check_binary_pkgs(obs, info, force, noaggregate)
+ filtered = check_binary_pkgs(obs, info, noaggregate)
bresults = [item for item in bresults if item[0] in filtered]
info = dict(item for item in info.iteritems() if item[0] in filtered)
bresults = [item for item in bresults if item[0] in filtered]
info = dict(item for item in info.iteritems() if item[0] in filtered)
help='amount of parallel processes to use',
default=config.get('processes'))
parser.add_argument('-c', '--comment', help='comment', default='')
help='amount of parallel processes to use',
default=config.get('processes'))
parser.add_argument('-c', '--comment', help='comment', default='')
- parser.add_argument('-f', '--force', action='store_true',
- help='force group creation')
parser.add_argument('--noaggregate',
default=config.get('noaggregate', ''),
help='do not aggregate packages matching regexp')
parser.add_argument('--noaggregate',
default=config.get('noaggregate', ''),
help='do not aggregate packages matching regexp')
"""Command line entry point. Called from [sub_]main."""
obs = OBS(argv.apiurl, argv.apiuser, argv.apipasswd)
return group_submissions(obs, argv.submission, argv.project,
"""Command line entry point. Called from [sub_]main."""
obs = OBS(argv.apiurl, argv.apiuser, argv.apipasswd)
return group_submissions(obs, argv.submission, argv.project,
- argv.comment, argv.force, argv.processes,
+ argv.comment, argv.processes,