aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-25 11:55:51 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-25 11:55:51 +0000
commit2f67bc3c3d471de2afa9187847e4181c7c39aaa7 (patch)
tree0ead2f5e055e55e52cbd2c83e1e0ee7b2f3e64e1
parent6bc4f8cd2d3fa6b78b8bf91586b2b335e4d1591b (diff)
downloadrpm-setup-2f67bc3c3d471de2afa9187847e4181c7c39aaa7.tar
rpm-setup-2f67bc3c3d471de2afa9187847e4181c7c39aaa7.tar.gz
rpm-setup-2f67bc3c3d471de2afa9187847e4181c7c39aaa7.tar.bz2
rpm-setup-2f67bc3c3d471de2afa9187847e4181c7c39aaa7.tar.xz
rpm-setup-2f67bc3c3d471de2afa9187847e4181c7c39aaa7.zip
substitute $PACKAGE_NAME in kmod() provides
-rwxr-xr-xkmod.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 435d887..5e39538 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -19,7 +19,7 @@ dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
MODULES=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/\1/;T;p' $d`
# default on PACKAGE_NAME if no BUILT_MODULE_NAME is specified
[ -z "$MODULES" ] && MODULES=$PACKAGE_NAME
- echo "$MODULES" | while read m; do
+ echo "$MODULES" | sed -re "s/\\\$PACKAGE_NAME/$PACKAGE_NAME/" | while read m; do
echo "kmod($m) = $VERSION"
done
done