diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-25 11:55:23 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-25 11:55:23 +0000 |
commit | 6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b (patch) | |
tree | 3e4aaa874f15db58e2eccae10e72c18c97924434 | |
parent | 6d0caa9e7c4b28f5a0219f6da31874c98c850f29 (diff) | |
download | rpm-setup-6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b.tar rpm-setup-6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b.tar.gz rpm-setup-6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b.tar.bz2 rpm-setup-6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b.tar.xz rpm-setup-6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b.zip |
fix handling multiple dkms.conf files (it probably won't happen in real life)
-rwxr-xr-x | kmod.prov | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ if (/^srcversion:/) { } ' dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$') -[ -n "$dkmslist" ] && echo $dkmslist | while read d; do +[ -n "$dkmslist" ] && for d in $dkmslist; do VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d` [ -z "$VERSION" ] && continue PACKAGE_NAME=`sed -rne 's/^PACKAGE_NAME="?([^"]+)"?$/\1/;T;p' $d` |