Issue #6568
closedPulp 3 Sync of CentOS 8 Base OS repo, also ends up including AppStream
Description
Hi
I have been using Pulp 3.2.1 and have found that when Synching the following CentOS 8 repo: http://mirror.centos.org/centos/8.1.1911/BaseOS/x86_64/os/, when it is Published and Distributed it ends up including RPMs that are also in http://mirror.centos.org/centos/8.1.1911/AppStream/x86_64/os/Packages/.
A sample of how the repo ends up being Published is as follows:
.treeinfo
389-ds-base-1.4.1.3-7.module_el8.1.0+234+96aec258.x86_64.rpm
389-ds-base-devel-1.4.1.3-7.module_el8.1.0+234+96aec258.x86_64.rpm
389-ds-base-legacy-tools-1.4.1.3-7.module_el8.1.0+234+96aec258.x86_64.rpm
389-ds-base-libs-1.4.1.3-7.module_el8.1.0+234+96aec258.x86_64.rpm
389-ds-base-snmp-1.4.1.3-7.module_el8.1.0+234+96aec258.x86_64.rpm
389-ds1.48010020191119214651eb48df33x86_64snippet
AppStream/
CUnit-2.1.3-17.el8.i686.rpm
CUnit-2.1.3-17.el8.x86_64.rpm
GConf2-3.2.6-22.el8.i686.rpm
GConf2-3.2.6-22.el8.x86_64.rpm
Judy-1.0.5-18.module_el8.1.0+217+4d875839.x86_64.rpm
You will also see that there is an AppStream folder that has been created, which also contains its own repo data.
I recently tried out the same thing Pulp 3.3.0 today, and again see the same results. However due to the recent change in Pulp-RPM publication, when viewing the distributed content in a browser you see
.treeinfo
AppStream/
Packages/
images/
repodata/
Again AppStream contains it's own repodata, and then when you browse through the packages folders you will then see package belonging to AppStream e.g. adobe-mappings-cmap-20171205-3.el8.noarch.rpm
I have been running this on RHEL 7.7, using python 3.6
Matt
Files
Fixes how DistributionTrees (kickstart repos) are published.
This patch does the following:
fixes: #6568 https://pulp.plan.io/issues/6568
[nocoverage]