[SCM] Vim packaging branch, deb/runtime, updated. upstream/7.1.285-126-g8323229

James Vega jamessan at debian.org
Fri Jun 27 02:13:03 UTC 2008


The following commit has been merged in the deb/runtime branch:
commit 8323229b4cdb1e0bee798b80b88fd2a94e1a5e0b
Author: James Vega <jamessan at debian.org>
Date:   Thu Jun 26 22:12:24 2008 -0400

    Use wget/curl if available for downloading spellfiles.
    
    Closes: #487221
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index 1ca76a4..1c0092f 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -3,7 +3,11 @@
 " Last Change:	2008 May 29
 
 if !exists('g:spellfile_URL')
-  let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
+  if executable('wget') || executable('curl')
+    let g:spellfile_URL = 'http://ftp.vim.org/pub/vim/runtime/spell'
+  else
+    let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
+  endif
 endif
 let s:spellfile_URL = ''    " Start with nothing so that s:donedict is reset.
 

-- 
Vim packaging



More information about the pkg-vim-maintainers mailing list