From d8200595647f1efb35771617b2f634e4b63a8d32 Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Tue, 31 Mar 2026 13:24:57 -0400 Subject: [PATCH] Update replication support to work with "atomic" replications (cherry picked from commit 8e14e14d7adba21df082470d1e536985ed96f77d) --- CHANGES/+atomic-replication-support.bugfix | 1 + pulp_python/app/replica.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/+atomic-replication-support.bugfix diff --git a/CHANGES/+atomic-replication-support.bugfix b/CHANGES/+atomic-replication-support.bugfix new file mode 100644 index 00000000..6795fafd --- /dev/null +++ b/CHANGES/+atomic-replication-support.bugfix @@ -0,0 +1 @@ +Support "atomic" replications in pulpcore 3.107 diff --git a/pulp_python/app/replica.py b/pulp_python/app/replica.py index 0a11bfc3..5cf015fe 100644 --- a/pulp_python/app/replica.py +++ b/pulp_python/app/replica.py @@ -31,7 +31,8 @@ def remote_extra_fields(self, upstream_distribution): def url(self, upstream_distribution): # Ignore distributions that are only pull-through repo, pub = upstream_distribution["repository"], upstream_distribution["publication"] - if repo or pub: + repo_ver = upstream_distribution.get("repository_version") + if repo or pub or repo_ver: return super().url(upstream_distribution) return None