Issue #1917
closedpulp_rpm depends on createrepo and createrepo_c
Description
We use createrepo to generate the XML snippets, and createrepo_c to generate the SQLite databases. We should drop our dependency on createrepo, which is a dead project, and use createrepo_c exclusively. The only place we use createrepo is here: https://github.com/pulp/pulp_rpm/blob/4678cc697458ec207996bee2d851f72db190c167/plugins/pulp_rpm/plugins/importers/yum/parse/rpm.py#L4-L31
createrepo_c provides the same functionality in its python bindings (packaged as ``python2-createrepo_c``)
Related issues
Updated by rbarlow over 8 years ago
- Has duplicate Issue #1920: pulp-rpm depends on createrepo, which will not be ported to Python 3 added
Updated by rbarlow over 8 years ago
This is important because createrepo will not be ported to Python 3.
Updated by mhrivnak over 8 years ago
Big +1. The code and packaging changes will likely be easy, and then we just need to carefully test that the output is equivalent.
I think this is probably appropriate as a Refactor instead of a bug.
Docs: http://rpm-software-management.github.io/createrepo_c/python/lib.html
Updated by jcline@redhat.com over 8 years ago
- Status changed from NEW to POST
- Assignee set to jcline@redhat.com
- Triaged changed from No to Yes
Updated by ipanova@redhat.com over 8 years ago
- Assignee deleted (
jcline@redhat.com)
Updated by bmbouter about 7 years ago
- Related to Task #3158: Evaluate Pulp2's dependence and usage of yum related packages added
Updated by dalley over 6 years ago
- Status changed from NEW to CLOSED - CURRENTRELEASE
RPM plugin will be rewritten from scratch without createrepo (old)
Updated by rmcgover almost 6 years ago
In pulp 2-master, "pulp_rpm depends on createrepo and createrepo_c" is still true. This now causes problems as Fedora 29 finally obsoleted createrepo by createrepo_c, meaning you can't install both at the same time. It means we can't use or develop Pulp 2.x on Fedora >= 29 and it means Pulp 2.x development environment is currently broken, since it uses fedora:latest.
Was the previous comment about "RPM plugin will be rewritten" referring to Pulp 3? We need a solution to fix the development environment, can we reopen this or file a new issue? Or do you rather want to say that Fedora 28 is the last Fedora where Pulp 2.x can be used?