[Pkg-dkms-commits] [SCM] Dynamic Kernel Module Support branch, master, updated. debian/2.1.1.1-2-5-g9ccbdc7
David Paleino
dapal at debian.org
Thu Feb 18 17:10:28 UTC 2010
The following commit has been merged in the master branch:
commit 9ccbdc7ed72a2099e0c09785a40b2f29daf253e2
Author: Frédéric Brière <fbriere at fbriere.net>
Date: Wed Feb 17 16:14:11 2010 -0500
Skip prerm removal if there are no modules for that version
This prevents the prerm from failing if there are modules installed
under other versions, but not the one we are removing.
diff --git a/debian/scripts/prerm-dkms b/debian/scripts/prerm-dkms
index 6ae2988..6e93a1b 100644
--- a/debian/scripts/prerm-dkms
+++ b/debian/scripts/prerm-dkms
@@ -3,7 +3,7 @@ DKMS_VERSION=#MODULE_VERSION#
case "$1" in
remove|upgrade|deconfigure)
- if [ "$(dkms status -m $DKMS_NAME)" ]; then
+ if [ "$(dkms status -m $DKMS_NAME -v $DKMS_VERSION)" ]; then
dkms remove -m $DKMS_NAME -v $DKMS_VERSION --all
fi
;;
--
Dynamic Kernel Module Support
More information about the Pkg-dkms-commits
mailing list