From: Ken Dreyer Date: Thu, 7 Jul 2011 14:39:10 +0000 (-0400) Subject: Red Hat: use repoquery to find kernels in build script X-Git-Tag: upstream/1.8.0_pre1^2~3566 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1accef4e77c8cad518d728d15fbd194bebd49f33;p=packages%2Fo%2Fopenafs.git 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 --- 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 = <