aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-25 11:55:23 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-25 11:55:23 +0000
commit6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b (patch)
tree3e4aaa874f15db58e2eccae10e72c18c97924434
parent6d0caa9e7c4b28f5a0219f6da31874c98c850f29 (diff)
fix handling multiple dkms.conf files (it probably won't happen in real life)
-rwxr-xr-xkmod.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 809215f..435d887 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -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`