Unable to sync debian repos older than jessie
Truly sorry if this is not the place for this bug report. I spent time searching for the right place and this is where I eventually ended up.
So, the problem is with the pulp_deb. Unfortunately our company have some old servers left and I need to synchronize the Debian wheezy repository.
When I try to sync the repository I get the following error:
IOError: [Errno 2] No such file or directory: u'/var/cache/pulp/reserved_resource_worker-1@c332pc-katello/ca55db26-f364-40bc-bbac-b450445c56c0/dists/wheezy/contrib/binary-amd64/Packages.bz2
The reason for this error turns out to be that the wheezy archive repository doesn't use .bz2 extention, but instead .bz for Packages archive. Pulp looks for Packages.bz2 and not Packages.bz.
I have attached the journalctl log when this happens.
A potential fix could perhaps be some kind of regex that first tried to download .bz2 and if that fails, it tries the .bz extention.