r103 - in trunk/vim/debian: . patches

James Vega jamessan-guest@costa.debian.org
Wed, 23 Mar 2005 14:49:29 +0100


Author: jamessan-guest
Date: 2005-03-23 14:49:28 +0100 (Wed, 23 Mar 2005)
New Revision: 103

Added:
   trunk/vim/debian/patches/115_gzip.vim.diff
Modified:
   trunk/vim/debian/changelog
Log:
Fix #281630, bug when editing foo.gz (a symlink to bar.gz)


Modified: trunk/vim/debian/changelog
===================================================================
--- trunk/vim/debian/changelog	2005-03-22 23:27:10 UTC (rev 102)
+++ trunk/vim/debian/changelog	2005-03-23 13:49:28 UTC (rev 103)
@@ -20,8 +20,12 @@
     + Fixed the errors postinst-does-not-call-updatemenus and
        postrm-does-not-call-updatemenus
 
- -- Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>  Tue, 22 Mar 2005 23:27:00 +0100
+  * James Vega <vega.james@gmail.com>:
+    + Closes: #281630: When a gzipped file is a symlink, vim removes the .gz
+      from the symlink filename and removes compression
 
+ -- Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>  Wed, 23 Mar 2005 08:45:31 -0500
+
 vim (1:6.3-067+2) unstable; urgency=medium
 
   * Norbert Tretkowski <nobse@debian.org>:

Added: trunk/vim/debian/patches/115_gzip.vim.diff
===================================================================
--- trunk/vim/debian/patches/115_gzip.vim.diff	2005-03-22 23:27:10 UTC (rev 102)
+++ trunk/vim/debian/patches/115_gzip.vim.diff	2005-03-23 13:49:28 UTC (rev 103)
@@ -0,0 +1,12 @@
+diff -ur vim63.orig/runtime/plugin/gzip.vim vim63/runtime/plugin/gzip.vim
+--- vim63.orig/runtime/plugin/gzip.vim	2004-01-12 11:39:39.000000000 -0500
++++ vim63/runtime/plugin/gzip.vim	2005-03-22 22:31:09.196143840 -0500
+@@ -113,7 +113,7 @@
+   " don't do anything if the cmd is not supported
+   if s:check(a:cmd)
+     " Rename the file before compressing it.
+-    let nm = expand("<afile>")
++    let nm = resolve(expand("<afile>"))
+     let nmt = s:tempname(nm)
+     if rename(nm, nmt) == 0
+       call system(a:cmd . " " . nmt)