aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-27 09:29:51 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-27 09:29:51 +0000
commitd34a14160d9d8bb6c8333413dd3c75a296a05ee6 (patch)
tree4d284650682254980a5496f82d79f4b0da87fcaa
parent8cc7cdee60ad60e1223218b74da10441e7255c60 (diff)
downloadrpm-setup-d34a14160d9d8bb6c8333413dd3c75a296a05ee6.tar
rpm-setup-d34a14160d9d8bb6c8333413dd3c75a296a05ee6.tar.gz
rpm-setup-d34a14160d9d8bb6c8333413dd3c75a296a05ee6.tar.bz2
rpm-setup-d34a14160d9d8bb6c8333413dd3c75a296a05ee6.tar.xz
rpm-setup-d34a14160d9d8bb6c8333413dd3c75a296a05ee6.zip
use vermagic instead of srcversion (from Danny)
-rwxr-xr-xkmod.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 5e39538..fd90d9a 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -6,7 +6,7 @@ echo $modulelist | xargs -r /sbin/modinfo | \
perl -lne '
$name = $1 if m!^filename:.*\b([^/]+)\.k?o!;
$ver = $1 if /^version:\s*[a-zA-Z]{0,6}\-?(\d+[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*[\.\:\-\[\]]?\d*-?[a-zA-Z]{0,6}\d?).*/;
-if (/^srcversion:/) {
+if (/^vermagic:/) {
print "kmod\($name\) = $ver" if $name && $ver;
undef $name, $ver;
}