Source: dkms
Version: 2.2.0.3-1
Severity: important
Tags: patch

Hi,

'dkms uninstall' does not work.

-----
$ dkms status
hello, 0.0.1, 3.0.0-1-amd64, x86_64: installed
$ sudo dkms uninstall -m hello -v 0.0.1 -k 3.0.0-1-amd64
$ dkms status
hello, 0.0.1, 3.0.0-1-amd64, x86_64: installed
-----

Because no values return in have_one_kernel function, processing
finishes with this function.
I created a patch which revise this problem.

Could you check this patch?

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff --git a/dkms b/dkms
index 042acc0..f314fc4 100644
--- a/dkms
+++ b/dkms
@@ -167,6 +167,8 @@ have_one_kernel() {
 	$"parameters on the command line."
     [[ $all ]] && die 5 $"The action $1 does not support the --all" \
 	$"parameter."
+
+	return 0
 }
 
 # Set up the kernelver and arch arrays.  You must have a 1:1 correspondence --

Reply via email to