Skip to content

Commit

Permalink
Add "--metadata-signing-service" option to rpm
Browse files Browse the repository at this point in the history
fixes #605

Co-Authored-By: Matthias Dellweg <2500@gmx.de>
  • Loading branch information
tjmullicani and mdellweg committed Jun 2, 2023
1 parent 66f587a commit 154576d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/605.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add '--metadata-signing-service' option to rpm.
10 changes: 10 additions & 0 deletions pulpcore/cli/rpm/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
PulpRepositoryContext,
)
from pulp_glue.common.i18n import get_translation
from pulp_glue.core.context import PulpSigningServiceContext
from pulp_glue.rpm.context import (
PulpRpmPackageContext,
PulpRpmRemoteContext,
Expand Down Expand Up @@ -59,6 +60,14 @@
),
)

metadata_signing_service_option = resource_option(
"--metadata-signing-service",
default_plugin="core",
default_type="core",
context_table={"core:core": PulpSigningServiceContext},
href_pattern=PulpSigningServiceContext.HREF_PATTERN,
)


def _content_callback(ctx: click.Context, param: click.Parameter, value: Any) -> Any:
if value:
Expand Down Expand Up @@ -125,6 +134,7 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) ->
click.option("--description"),
click.option("--retain-package-versions", type=int),
remote_option,
metadata_signing_service_option,
click.option(
"--metadata-checksum-type", type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False)
),
Expand Down

0 comments on commit 154576d

Please sign in to comment.