diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-04 17:43:46 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-04 17:43:46 +0000 |
commit | a3365a128165102576c0d0c2db7c537317c84d52 (patch) | |
tree | 25160c4dc3203b6ab762d4f221ef5aedadb26fac /kmod.prov | |
parent | f632eeaa41ab63f16f0a201a1a4455dbf49a4745 (diff) | |
download | rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.gz rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.bz2 rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.tar.xz rpm-setup-a3365a128165102576c0d0c2db7c537317c84d52.zip |
add package version in dkms.conf kmod() provides
Diffstat (limited to 'kmod.prov')
-rwxr-xr-x | kmod.prov | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,6 +13,7 @@ if (/^srcversion:/) { ' dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$') [ -n "$dkmslist" ] && echo $dkmslist | while read d; do + VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d` [ -z "$VERSION" ] && continue MODULES=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/\1/;T;p' $d` if [ -z "$MODULES" ]; then @@ -20,6 +21,6 @@ dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$') MODULES=`sed -rne 's/^PACKAGE_NAME="?([^"]+)"?$/\1/;T;p' $d` fi echo "$MODULES" | while read m; do - echo "kmod($m)" + echo "kmod($m) = $VERSION" done done |