Get non-rpm build to pungi's extra_files with inheritance

JIRA: COMPOSE-4214
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-03-20 13:18:13 +08:00
parent 4a78514162
commit 63ec1adc22
2 changed files with 4 additions and 2 deletions

View File

@ -270,7 +270,9 @@ class KojiScmWrapper(ScmBase):
package, package,
koji_tag, koji_tag,
) )
builds = self.proxy.listTagged(koji_tag, package=package, latest=True) builds = self.proxy.listTagged(
koji_tag, package=package, inherit=True, latest=True
)
if len(builds) != 1: if len(builds) != 1:
raise RuntimeError("No package %s in tag %s", package, koji_tag) raise RuntimeError("No package %s in tag %s", package, koji_tag)
self._download_build(builds[0], file_pattern, target_dir) self._download_build(builds[0], file_pattern, target_dir)

View File

@ -536,7 +536,7 @@ class KojiSCMTestCase(SCMBaseTest):
[ [
mock.call("koji"), mock.call("koji"),
mock.call().koji_proxy.listTagged( mock.call().koji_proxy.listTagged(
"images", package="my-build", latest=True "images", package="my-build", inherit=True, latest=True
), ),
mock.call().koji_proxy.listArchives(123), mock.call().koji_proxy.listArchives(123),
mock.call().koji_module.pathinfo.typedir({"build_id": 123}, "image"), mock.call().koji_module.pathinfo.typedir({"build_id": 123}, "image"),