Add test for materialized pkgset
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
63a8b7b6c9
commit
465ecf229c
5 changed files with 133 additions and 16 deletions
|
|
@ -168,6 +168,14 @@ class PackageSetBase(kobo.log.LoggingBase):
|
|||
|
||||
return self.rpms_by_arch
|
||||
|
||||
def subset(self, primary_arch, arch_list, exclusive_noarch=True):
|
||||
"""Create a subset of this package set that only includes packages compatible with"""
|
||||
pkgset = PackageSetBase(
|
||||
self.name, self.sigkey_ordering, logger=self._logger, arches=arch_list
|
||||
)
|
||||
pkgset.merge(self, primary_arch, arch_list, exclusive_noarch=exclusive_noarch)
|
||||
return pkgset
|
||||
|
||||
def merge(self, other, primary_arch, arch_list, exclusive_noarch=True):
|
||||
"""
|
||||
Merge ``other`` package set into this instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue