Skip to content

Commit 40e46e7

Browse files
committed
Add autopublish option for repository creation and updation
closes #243 Signed-off-by: Balasankar 'Balu' C <balu@dravidam.net>
1 parent 76910bf commit 40e46e7

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGES/243.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add autopublish option for repository creation and updation

pulpcore/cli/deb/repository.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, /, repo_type: str)
120120
update_options = [
121121
click.option("--description"),
122122
remote_option,
123-
# pulp_option(
124-
# "--autopublish/--no-autopublish",
125-
# needs_plugins=[PluginRequirement("deb", specifier=">=999.0.0")],
126-
# default=None,
127-
# ),
123+
pulp_option(
124+
"--autopublish/--no-autopublish",
125+
needs_plugins=[PluginRequirement("deb", specifier=">=3.8.0")],
126+
default=None,
127+
),
128128
retained_versions_option,
129129
]
130130
create_options = update_options + [click.option("--name", required=True)]

0 commit comments

Comments
 (0)