This commit is contained in:
soksanichenko 2022-11-09 21:42:13 +02:00
parent 80c4536eaa
commit 54209f3643

View File

@ -200,16 +200,13 @@ class PkgsetSourceKojiMock(pungi.phases.pkgset.source.PkgsetSourceBase):
def __call__(self):
compose = self.compose
koji_profile = compose.conf["koji_profile"]
self.koji_wrapper = pungi.wrappers.kojiwrapper.KojiMockWrapper(
koji_profile
)
self.koji_wrapper = pungi.wrappers.kojiwrapper.KojiMockWrapper(compose)
# path prefix must contain trailing '/'
path_prefix = self.koji_wrapper.koji_module.config.topdir.rstrip("/") + "/"
package_sets = get_pkgset_from_koji(
self.compose, self.koji_wrapper, path_prefix
)
return (package_sets, path_prefix)
return package_sets, path_prefix
def get_pkgset_from_koji(compose, koji_wrapper, path_prefix):