Turns out we were not passing the koji_build to KojiSpec,
so if one specifies a particular build, it'll be ignored
by our code. So fix that bug.

Now, users specifying host_kernel_koji_build will have
their settings honored.

Signed-off-by: Lucas Meneghel Rodrigues <l...@redhat.com>
---
 client/virt/virt_utils.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/virt/virt_utils.py b/client/virt/virt_utils.py
index 717ea9c..17963fb 100644
--- a/client/virt/virt_utils.py
+++ b/client/virt/virt_utils.py
@@ -3884,9 +3884,9 @@ def install_host_kernel(job, params):
         koji_build = params.get('host_kernel_koji_build')
         koji_tag = params.get('host_kernel_koji_tag')
 
-        k_deps = KojiPkgSpec(tag=koji_tag, package='kernel',
+        k_deps = KojiPkgSpec(tag=koji_tag, build=koji_build, package='kernel',
                              subpackages=['kernel-devel', 'kernel-firmware'])
-        k = KojiPkgSpec(tag=koji_tag, package='kernel',
+        k = KojiPkgSpec(tag=koji_tag, build=koji_build, package='kernel',
                         subpackages=['kernel'])
 
         c = KojiClient(koji_cmd)
-- 
1.7.10.1

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to