mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
add architecture filtering to osc release
This commit is contained in:
parent
f3119fa475
commit
76ff4456eb
@ -89,6 +89,7 @@ def release(
|
|||||||
project,
|
project,
|
||||||
package,
|
package,
|
||||||
repository,
|
repository,
|
||||||
|
architecture,
|
||||||
target_project,
|
target_project,
|
||||||
target_repository,
|
target_repository,
|
||||||
set_release_to=None,
|
set_release_to=None,
|
||||||
@ -102,6 +103,7 @@ def release(
|
|||||||
target_project,
|
target_project,
|
||||||
target_package=None,
|
target_package=None,
|
||||||
repository=repository,
|
repository=repository,
|
||||||
|
architecture=architecture,
|
||||||
dest_repository=target_repository,
|
dest_repository=target_repository,
|
||||||
delayed=delayed,
|
delayed=delayed,
|
||||||
)
|
)
|
||||||
@ -114,6 +116,8 @@ def release(
|
|||||||
url_query = {"cmd": "release"}
|
url_query = {"cmd": "release"}
|
||||||
if repository:
|
if repository:
|
||||||
url_query["repository"] = repository
|
url_query["repository"] = repository
|
||||||
|
if architecture:
|
||||||
|
url_query["arch"] = architecture
|
||||||
if target_project:
|
if target_project:
|
||||||
url_query["target_project"] = target_project
|
url_query["target_project"] = target_project
|
||||||
if target_repository:
|
if target_repository:
|
||||||
|
@ -8,6 +8,7 @@ def format_msg_project_package_options(
|
|||||||
dest_project=None,
|
dest_project=None,
|
||||||
dest_package=None,
|
dest_package=None,
|
||||||
repository=None,
|
repository=None,
|
||||||
|
architecture=None,
|
||||||
dest_repository=None,
|
dest_repository=None,
|
||||||
**options,
|
**options,
|
||||||
):
|
):
|
||||||
@ -34,6 +35,9 @@ def format_msg_project_package_options(
|
|||||||
if dest_repository:
|
if dest_repository:
|
||||||
msg += f" repository '{dest_repository}'"
|
msg += f" repository '{dest_repository}'"
|
||||||
|
|
||||||
|
if architecture:
|
||||||
|
msg += f" architecture '{architecture}'"
|
||||||
|
|
||||||
msg_options = [key.replace("_", "-") for key, value in options.items() if value]
|
msg_options = [key.replace("_", "-") for key, value in options.items() if value]
|
||||||
if msg_options:
|
if msg_options:
|
||||||
msg_options.sort()
|
msg_options.sort()
|
||||||
|
@ -3922,6 +3922,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
keep_link=opts.keep_link)
|
keep_link=opts.keep_link)
|
||||||
print(decode_it(r))
|
print(decode_it(r))
|
||||||
|
|
||||||
|
@cmdln.option('-a', '--arch', metavar='ARCH',
|
||||||
|
help='Release only binaries from the specified architecture')
|
||||||
@cmdln.option('-r', '--repo', metavar='REPO',
|
@cmdln.option('-r', '--repo', metavar='REPO',
|
||||||
help='Release only binaries from the specified repository')
|
help='Release only binaries from the specified repository')
|
||||||
@cmdln.option('--target-project', metavar='TARGETPROJECT',
|
@cmdln.option('--target-project', metavar='TARGETPROJECT',
|
||||||
@ -3954,6 +3956,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
project=project,
|
project=project,
|
||||||
package=package,
|
package=package,
|
||||||
repository=opts.repo,
|
repository=opts.repo,
|
||||||
|
architecture=opts.arch,
|
||||||
target_project=opts.target_project,
|
target_project=opts.target_project,
|
||||||
target_repository=opts.target_repository,
|
target_repository=opts.target_repository,
|
||||||
set_release_to=opts.set_release,
|
set_release_to=opts.set_release,
|
||||||
|
Loading…
Reference in New Issue
Block a user