[Pkg-dkms-commits] [SCM] Maintainance of the dkms package branch, master, updated. debian/2.0.21.1-1-16-gfce1158

Giuseppe Iuculano giuseppe at iuculano.it
Tue May 19 21:40:28 UTC 2009


The following commit has been merged in the master branch:
commit fce11582656c056297063b322a606fe888abeffa
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date:   Tue May 19 23:37:29 2009 +0200

    debian/patches/16_dpkg-divert.patch: do not archive original module in Debian, now we are using dpkg-divert

diff --git a/debian/patches/16_dpkg-divert.patch b/debian/patches/16_dpkg-divert.patch
index d9de25b..d692cd4 100644
--- a/debian/patches/16_dpkg-divert.patch
+++ b/debian/patches/16_dpkg-divert.patch
@@ -1,7 +1,26 @@
 Use dpkg-divert to override an existing kernel module, thanks to Andrea Mennucci. (Closes: #529059)
 --- a/dkms
 +++ b/dkms
-@@ -1258,13 +1258,20 @@ function install_module()
+@@ -1234,11 +1234,13 @@ function install_module()
+ 	    local found_orginal=""
+ 	    for original_module in $archive_pref1 $archive_pref2 $archive_pref3 $archive_pref4; do
+ 		if [ -f "$original_module" ]; then
+-		    echo $"   - Found $original_module"
+-		    echo $"   - Storing in $dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}/"
+-		    echo $"   - Archiving for uninstallation purposes"
+-		    mkdir -p "$dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}"
+-		    mv -f "$original_module" "$dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}/"
++		    if ! which dpkg-divert >/dev/null 2>&1 ; then
++			    echo $"   - Found $original_module"
++			    echo $"   - Storing in $dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}/"
++			    echo $"   - Archiving for uninstallation purposes"
++			    mkdir -p "$dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}"
++			    mv -f "$original_module" "$dkms_tree/$module/original_module/${kernelver_array[0]}/${arch_array[0]}/"
++		    fi
+ 		    found_original="yes"
+ 		    break
+ 		fi
+@@ -1258,13 +1260,20 @@ function install_module()
  	if [ "$module_count" -gt 1 ]; then
  	    echo $" - Multiple same named modules!"
  	    echo $"   - $module_count named ${dest_module_name[$count]}$module_suffix in $lib_tree/"
@@ -27,7 +46,7 @@ Use dpkg-divert to override an existing kernel module, thanks to Andrea Mennucci
  	    done
  	fi
  
-@@ -1605,10 +1612,16 @@ function do_uninstall()
+@@ -1605,10 +1614,16 @@ function do_uninstall()
  	    rm -f "$install_tree/$1${real_dest_module_location}/${dest_module_name[$count]}$module_suffix"
  	    echo $" - Original module"
  	    if [ -e "$dkms_tree/$module/original_module/$1/$2/${dest_module_name[$count]}$module_suffix" ]; then

-- 
Maintainance of the dkms package



More information about the Pkg-dkms-commits mailing list