From 1accef4e77c8cad518d728d15fbd194bebd49f33 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 7 Jul 2011 10:39:10 -0400 Subject: [PATCH] Red Hat: use repoquery to find kernels in build script Remove the custom yum Python code in favor of repoquery. Change-Id: Ifb185297666e5365974c342814ed3c2d2a54092e Reviewed-on: http://gerrit.openafs.org/4926 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/packaging/RedHat/mockbuild.pl | 54 ++++++++----------------------- 1 file changed, 13 insertions(+), 41 deletions(-) diff --git a/src/packaging/RedHat/mockbuild.pl b/src/packaging/RedHat/mockbuild.pl index 79d4c733b..d0706b287 100755 --- a/src/packaging/RedHat/mockbuild.pl +++ b/src/packaging/RedHat/mockbuild.pl @@ -21,47 +21,19 @@ my $buildall = 0; my $ignorerelease = 1; my @newrpms; -# Words cannot describe how gross this is. Yum no longer provides usable -# output, so we need to call the python interface. At some point this -# probably means this script should be entirely rewritten in python, -# but this is not that point. - -sub findKernelModules { +sub findKernels { my ($root, $uname, @modules) = @_; - my $modlist = join(",",map { "'".$_."'" } @modules); - my $python = <