Skip to content

Commit

Permalink
Support the --checksum-type option and deprecate legacy options
Browse files Browse the repository at this point in the history
--package-checksum-type and --metadata-checksum-type are now deprecated.

closes pulp#850
  • Loading branch information
dralley committed Dec 13, 2023
1 parent 5f10dc3 commit e939f6b
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions pulpcore/cli/rpm/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,31 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) ->
remote_option,
metadata_signing_service_option,
click.option(
"--metadata-checksum-type", type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False)
"--metadata-checksum-type",
type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False),
help=_("DEPRECATED: Option specifying the checksum type to use for repository metadata."),
),
click.option(
"--package-checksum-type", type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False)
"--package-checksum-type",
type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False),
help=_(
"DEPRECATED: Option specifying the checksum type to use for packages in "
"repository metadata."
),
),
click.option(
"--checksum-type",
type=click.Choice(CHECKSUM_CHOICES, case_sensitive=False),
help=_(
"Option specifying the checksum type to use for package and metadata integrity checks."
),
),
click.option(
"--gpgcheck",
type=click.Choice(("0", "1")),
callback=choice_to_int_callback,
help=_(
"""DEPRECATED:Option specifying whether a client should perform a GPG signature check
"""DEPRECATED: Option specifying whether a client should perform a GPG signature check
on packages."""
),
),
Expand All @@ -163,7 +177,7 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) ->
type=click.Choice(("0", "1")),
callback=choice_to_int_callback,
help=_(
"""DEPRECATED:Option specifying whether a client should perform a GPG signature check
"""DEPRECATED: Option specifying whether a client should perform a GPG signature check
on the repodata."""
),
),
Expand Down

0 comments on commit e939f6b

Please sign in to comment.