From 918e8c6098a5726f6713cc3ac2a1fc759e1ea36d 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. Reviewed-on: http://gerrit.openafs.org/4926 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 1accef4e77c8cad518d728d15fbd194bebd49f33) Change-Id: Ie68a006852d1564fa2da226a006a4e137d7cd5ed Reviewed-on: http://gerrit.openafs.org/4979 Tested-by: BuildBot Reviewed-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 = <