When remote repository has directory structure pulp distribution generate wrong metadata
When remote repository has directory structure e.g. RPM packages is in 'Packages' folder Pulp sync it well but after publish/distribution this repository primary.xml still has as location path 'Packages/pgk.rpm' but file itself is in root directory of PULPs' directory. It means that yum fail installation from this repository with '404 - Not Found'
- at publish artifacts  here it is the base path of package
- at create metadata  it has full relative path of original repository root dir
Tested with CentOS7 repository 
 https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/app/tasks/publishing.py#L109  https://github.com/pulp/pulp_rpm/blob/master/pulp_rpm/app/tasks/publishing.py#L259  http://mirror.centos.org/centos/7.7.1908/os/x86_64/
Alphabetical directory structure by default
Publish repository with directory structure sorter by first letter under 'Packages' directory.
Adjust docs scripts and tests to reflect the change. Added 'django' as test requirement.
Please register to edit this issue