The following commit has been merged in the master branch:
commit 9ccbdc7ed72a2099e0c09785a40b2f29daf253e2
Author: Frédéric Brière <[email protected]>
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

_______________________________________________
Pkg-dkms-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-dkms-commits

Reply via email to