diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-27 09:45:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-27 09:45:34 +0000 |
commit | dc69d1c955d47105a2cf98268e3cc76f71bb5444 (patch) | |
tree | c66a44e8b37833357484cd2fac3974c422d31bcc | |
parent | d34a14160d9d8bb6c8333413dd3c75a296a05ee6 (diff) | |
download | rpm-setup-dc69d1c955d47105a2cf98268e3cc76f71bb5444.tar rpm-setup-dc69d1c955d47105a2cf98268e3cc76f71bb5444.tar.gz rpm-setup-dc69d1c955d47105a2cf98268e3cc76f71bb5444.tar.bz2 rpm-setup-dc69d1c955d47105a2cf98268e3cc76f71bb5444.tar.xz rpm-setup-dc69d1c955d47105a2cf98268e3cc76f71bb5444.zip |
fix match of modules with '-'
-rwxr-xr-x | kmod.prov | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ provideslist=`sed "s/['\"]/\\\&/g"` modulelist=$(echo "$provideslist" | egrep '^.*(/lib/modules/|/var/lib/dkms/).*\.ko(\.gz)?$') echo $modulelist | xargs -r /sbin/modinfo | \ perl -lne ' -$name = $1 if m!^filename:.*\b([^/]+)\.k?o!; +$name = $1 if m!^filename:\s*(?:.*/)?([^/]+)\.k?o!; $ver = $1 if /^version:\s*[a-zA-Z]{0,6}\-?(\d+[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*-?[a-zA-Z]{0,6}\d?).*/; if (/^vermagic:/) { print "kmod\($name\) = $ver" if $name && $ver; |