Browse Source

use bundle.installed to check installation

events
gmarik 14 years ago
parent
commit
ece8fdccbf
2 changed files with 1 additions and 5 deletions
  1. +0
    -4
      autoload/vundle/installer.vim
  2. +1
    -1
      test/vimrc

+ 0
- 4
autoload/vundle/installer.vim View File

@ -62,10 +62,6 @@ func! s:helptags(rtp) abort
endf
func! s:installed(bundle) abort
return !empty(split(globpath(a:bundle.path(), '*'), "\n"))
endf
func! s:sync(bang, bundle) abort
if a:bundle.nosync() | return 0 | endif
if a:bundle.installed()


+ 1
- 1
test/vimrc View File

@ -47,7 +47,7 @@ BundleInstall
func! s:assert_bundles() abort
for b in g:vundle#bundles
if (!isdirectory(b.path().'/.git'))
if (!b.installed())
throw b.name.' not installed'
endif
endfor


|||||||
x
 
000:0
Loading…
Cancel
Save