[SCM] Vim packaging branch, debian, updated. upstream/7.1.285-149-g4d34bd4

James Vega jamessan at debian.org
Mon Jun 16 14:40:44 UTC 2008


The following commit has been merged in the debian branch:
commit 4d34bd47067e5063c22376aa95c1a97f5ed1a9a6
Author: James Vega <jamessan at debian.org>
Date:   Mon Jun 16 10:28:54 2008 -0400

    Restrict when diversions are added/removed.
    
    Only remove the diversions when calling "postrm remove".
    Only add the diversions when calling "preinst install" or "preinst upgrade"
    from a version older than 1:7.1.314-1.
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/debian/vim-runtime.postrm.in b/debian/vim-runtime.postrm.in
index a94ad77..9e49073 100644
--- a/debian/vim-runtime.postrm.in
+++ b/debian/vim-runtime.postrm.in
@@ -29,7 +29,9 @@ handhold_diversion_removal() {
 }
 
 rm -f /usr/share/vim/addons/doc/tags
-handhold_diversion_removal
+if [ "$1" = "remove" ]; then
+  handhold_diversion_removal
+fi
 
 #DEBHELPER#
 
diff --git a/debian/vim-runtime.preinst.in b/debian/vim-runtime.preinst.in
index 4a93e42..b98ea33 100644
--- a/debian/vim-runtime.preinst.in
+++ b/debian/vim-runtime.preinst.in
@@ -30,7 +30,10 @@ handhold_diversion_setup() {
   fi
 }
 
-handhold_diversion_setup
+if [ "$1" = "install" ] || \
+   ([ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "1:7.1.314-1"); then
+  handhold_diversion_setup
+fi
 
 #DEBHELPER#
 

-- 
Vim packaging



More information about the pkg-vim-maintainers mailing list