Skip to content

Commit

Permalink
backports: #9565
Browse files Browse the repository at this point in the history
https://pulp.plan.io/issues/9565

fixes #9628

(cherry picked from commit a697502)
  • Loading branch information
dralley committed Dec 10, 2021
1 parent 7ce3659 commit c35d50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES/9628.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In case that only a subtree is synced, it can happen that the PRIMARY_REPO key does not exists in repo_sync_results and the sync failed with accessing a not existing key at the end.
(backported from #9565)
1 change: 1 addition & 0 deletions pulp_rpm/app/tasks/synchronizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def is_subrepo(directory):
# publication needs to contain exactly the same metadata at the same paths.
if not mirror_metadata and optimize and repo_config["should_skip"]:
skipped_syncs += 1
repo_sync_results[directory] = repo.latest_version()
continue

stage = RpmFirstStage(
Expand Down

0 comments on commit c35d50f

Please sign in to comment.