[SCM] Vim packaging branch, debian, updated. upstream/7.2.010-260-g9228815

James Vega jamessan at debian.org
Sun Oct 12 06:43:47 UTC 2008


The following commit has been merged in the debian branch:
commit 92288158883c002bb1b0cdb1d753f566052ae102
Author: James Vega <jamessan at debian.org>
Date:   Sun Oct 12 02:39:31 2008 -0400

    Fix vim-runtime.preinst to populate $inst and check the proper state.
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/debian/vim-runtime.preinst.in b/debian/vim-runtime.preinst.in
index 6009df3..4836787 100644
--- a/debian/vim-runtime.preinst.in
+++ b/debian/vim-runtime.preinst.in
@@ -16,8 +16,8 @@ check_diversion() {
     rm -f /usr/share/vim/vim71/doc/tags
     rm -f /usr/share/vim/vim71/doc/help.txt
   elif dpkg --compare-versions "$1" ge "1:7.1.314-1"; then
-    dpkg-query -W -f='${Status}\n' vim-tiny | read inst dont care
-    if [ "$inst" != "installed" ]; then
+    inst="$(dpkg-query -W -f='${Status}\n' vim-tiny | awk '{print $2}')"
+    if [ "$inst" != "install" ]; then
       # 7.2a versioning was handled oddly
       if echo "$1" | grep -q '~'; then
         version="72a"

-- 
Vim packaging



More information about the pkg-vim-maintainers mailing list