diff options
author | Thomas Backlund <tmb@mageia.org> | 2011-03-03 16:48:13 +0000 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2011-03-03 16:48:13 +0000 |
commit | 6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e (patch) | |
tree | 6654442e2f815ba16b07c5e67f6f66c5af0b08a3 /kmod.prov | |
parent | ae8535e29203ed23a1efc7767a4597729cdc48ec (diff) | |
download | rpm-setup-6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e.tar rpm-setup-6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e.tar.gz rpm-setup-6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e.tar.bz2 rpm-setup-6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e.tar.xz rpm-setup-6c9f3ce49b9ead6fc2417f8d8fa51a2d2bbea89e.zip |
- kmod.prov: convert special chars [,],:,- to _ when generating1.120
kernel module version provides (needed with rpm-4.8.1)
Diffstat (limited to 'kmod.prov')
-rwxr-xr-x | kmod.prov | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6,6 +6,7 @@ echo $modulelist | xargs -r /sbin/modinfo | \ perl -lne ' $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?).*/; +$ver =~ s/(\[|\]|\:|-)/_/; if (/^vermagic:/) { print "kmod\($name\)" . ($ver ? " = $ver" : "") if $name; undef $name; undef $ver; |