From 1767166dd561b1a1d4117c582500fc6b32c96126 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: May 12 2014 19:05:02 +0000 Subject: Fix kmod.prov to deal with compressed modules (#1096349) --- diff --git a/kmod.prov b/kmod.prov index 82633e9..f02d8a0 100644 --- a/kmod.prov +++ b/kmod.prov @@ -4,7 +4,7 @@ IFS=$'\n' for i in $(grep -E '(/lib/modules/.*\.ko|/lib/modules/.*/modules.builtin)'); do - kmod=$(basename $i); + kmod=$(basename $i | sed -e 's/.[xg]z//'); if [ $kmod == "modules.builtin" ]; then for j in $(cat $i); do diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 14c7b64..6e781b8 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 21 +Version: 22 Release: 1%{?dist} # No version specified. License: GPL+ @@ -135,6 +135,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Mon May 12 2014 Josh Boyer - 22-1 +- Fix kmod.prov to deal with compressed modules (#1096349) + * Wed Apr 30 2014 Jens Petersen - 21-1 - macros.ghc-srpm moved to ghc-rpm-macros package (#1089102) - add requires ghc-srpm-macros