#1105 createrepo does not create sqlite database file even when createrepo_database is set to True
Closed: Invalid 5 years ago by lsedlar. Opened 5 years ago by cverna.

The composes in Fedora don't have the sqlite database created by createrepo (https://dl.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/SRPMS/repodata/), the configuration is set to make sure we create these files https://pagure.io/pungi-fedora/blob/master/f/fedora.conf#_84.

These files are needed for mdapi (https://apps.fedoraproject.org/mdapi/).

@kevin mentioned that it could be related with enabling zchunk in Fedora.


This is not related to zchunk. When the option was removed (#951), I didn't realize that something else might be using the file. The assumption was that if the compose is done with dnf, then the repo is also consumed by dnf, which never uses the database.

As such, the option only creates the database if yum is used as backend and has no effect for dnf based composes.

Either this needs to be fixed to create the database when configured, or the documentation needs to be updated.

Actually no, the comment above is wrong. If the option is enabled, it will create the database correctly. The link to the repo without the database is for updates, which does not have it enabled. The linked config file is for rawhide, that has the option enabled and the database is created there (https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20190107.n.0/compose/Everything/source/tree/repodata/).

The config template for updates is stored in another repo: https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/bodhi2/backend/templates/pungi.rpm.conf.j2

Metadata Update from @lsedlar:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

5 years ago

Ah ok , I ll make the change in ansible,

Thanks for looking at this :thumbsup:

Login to comment on this ticket.

Metadata