dkms/dkms-2.4.0-dont_fail_if_module_source_removed.patch

20 lines
703 B
Diff

--- dkms-2.4.0/dkms.orig 2017-06-18 16:14:10.760200880 +0200
+++ dkms-2.4.0/dkms 2017-06-18 16:17:02.255901350 +0200
@@ -515,7 +515,7 @@
[[ $3 ]] && read_conf_file="$3"
[[ -r $read_conf_file ]] || die 4 $"Could not locate dkms.conf file." \
- $"File: $conf does not exist."
+ $"File: $read_conf_file does not exist."
[[ $last_mvka = $module/$module_version/$1/$2 && \
$last_mvka_conf = $(readlink -f $read_conf_file) ]] && return
@@ -1558,6 +1558,7 @@
is_module_added() {
[[ $1 && $2 ]] || return 1
[[ -d $dkms_tree/$1/$2 ]] || return 2
+ [[ -d $dkms_tree/$1/$2/source/ ]] || return 2
[[ -L $dkms_tree/$1/$2/source || -d $dkms_tree/$1/$2/source ]];
}