repos: Consider checkinstall, too

Some checkinstall packages (like rpminstall-tests-checkinstall)
have large dependencies that affect ability to build package
when install checks are enabled.
This commit is contained in:
Ivan A. Melnikov 2023-08-02 14:59:08 +04:00
parent ea0db14e8b
commit 47bac38aa8

View File

@ -135,6 +135,10 @@ class Binary:
self.name, self.epoch, self.version, self.release)
# consider this repository components by default
DEFAULT_COMPONENTS = ('classic', 'checkinstall')
class Repository:
def __init__(self, repo_name, sources, binaries, bits):
@ -159,7 +163,7 @@ class Repository:
self.reverse_prov = dict(rprov)
@classmethod
def load(cls, repo_name, path, arch, components=('classic',)):
def load(cls, repo_name, path, arch, components=DEFAULT_COMPONENTS):
src_list, bin_list = lists.read_pkglist_heders_for_repo(
path, arch, components)
# xxx: not the very best heuristics