aboutsummaryrefslogtreecommitdiffstats
path: root/kmod.prov
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-01 21:39:13 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-01 21:39:13 +0000
commit63dbfac3363d996ca49ef38294879d6b6207d6d5 (patch)
tree5d2c386101714d64bd4a63382f5cb60f605715ca /kmod.prov
parenta73fe231c3f4750d3640e5805095e37b54baa66b (diff)
downloadrpm-setup-63dbfac3363d996ca49ef38294879d6b6207d6d5.tar
rpm-setup-63dbfac3363d996ca49ef38294879d6b6207d6d5.tar.gz
rpm-setup-63dbfac3363d996ca49ef38294879d6b6207d6d5.tar.bz2
rpm-setup-63dbfac3363d996ca49ef38294879d6b6207d6d5.tar.xz
rpm-setup-63dbfac3363d996ca49ef38294879d6b6207d6d5.zip
provide "kmod(module) = PACKAGE_VERSION" for dkms binary modules as well (#35074)
Diffstat (limited to 'kmod.prov')
-rwxr-xr-xkmod.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index f66af2b..27f9115 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -11,7 +11,7 @@ if (/^vermagic:/) {
undef $name; undef $ver;
}
'
-dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
+dkmslist=$(echo "$provideslist" | egrep '(/var/lib/dkms-binary/[^/]+/[^/]+|/usr/src)/[^/]+/dkms.conf$')
[ -n "$dkmslist" ] && for d in $dkmslist; do
VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d`
[ -z "$VERSION" ] && continue