createrepo: Allow disabling SQLite database

This is an optimization for Yum. DNF does not care at all.

The behaviour is configurable, but the default depends on gather
backend, as that is what users should be using to consume the packages
from the repo.

Fixes: https://pagure.io/pungi/issue/951
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-05-18 10:17:41 +02:00
parent 1afb709404
commit b4e746aa71
7 changed files with 73 additions and 1 deletions

View file

@ -149,6 +149,7 @@ class DummyCompose(object):
self.attempt_deliverable = mock.Mock()
self.fail_deliverable = mock.Mock()
self.require_deliverable = mock.Mock()
self.should_create_yum_database = True
def setup_optional(self):
self.all_variants['Server-optional'] = MockVariant(