From 40e46e7ed07a7b6fa47dd4a02fe43d04bfef00ce Mon Sep 17 00:00:00 2001 From: Balasankar 'Balu' C Date: Mon, 22 Sep 2025 11:25:38 +0530 Subject: [PATCH] Add autopublish option for repository creation and updation closes #243 Signed-off-by: Balasankar 'Balu' C --- CHANGES/243.feature | 1 + pulpcore/cli/deb/repository.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 CHANGES/243.feature diff --git a/CHANGES/243.feature b/CHANGES/243.feature new file mode 100644 index 0000000..f23e37a --- /dev/null +++ b/CHANGES/243.feature @@ -0,0 +1 @@ +Add autopublish option for repository creation and updation diff --git a/pulpcore/cli/deb/repository.py b/pulpcore/cli/deb/repository.py index f1c40e8..e37738a 100644 --- a/pulpcore/cli/deb/repository.py +++ b/pulpcore/cli/deb/repository.py @@ -120,11 +120,11 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, /, repo_type: str) update_options = [ click.option("--description"), remote_option, - # pulp_option( - # "--autopublish/--no-autopublish", - # needs_plugins=[PluginRequirement("deb", specifier=">=999.0.0")], - # default=None, - # ), + pulp_option( + "--autopublish/--no-autopublish", + needs_plugins=[PluginRequirement("deb", specifier=">=3.8.0")], + default=None, + ), retained_versions_option, ] create_options = update_options + [click.option("--name", required=True)]