Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/1284.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix CLI explicitly creating a publication after package upload when repo has autopublish enabled
7 changes: 6 additions & 1 deletion pulpcore/cli/rpm/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,12 @@ def upload(

# Sanity: ignore publish|use_temp unless destination-repository has been specified
use_tmp = final_dest_repo_ctx and kwargs["use_temp_repository"]
do_publish = final_dest_repo_ctx and kwargs["publish"]
# Publish if autopublish is not enabled on the repository
do_publish = (
final_dest_repo_ctx
and kwargs["publish"]
and not final_dest_repo_ctx.entity["autopublish"]
)

# Sanity: ignore relative_path if directory specified
if directory and kwargs["relative_path"]:
Expand Down
Loading