From ece8fdccbff9bbb96a47da67e8891fe62ad7ad79 Mon Sep 17 00:00:00 2001 From: gmarik Date: Wed, 4 May 2011 19:57:53 -0500 Subject: [PATCH] use bundle.installed to check installation --- autoload/vundle/installer.vim | 4 ---- test/vimrc | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index d1ffdd3..5350828 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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() diff --git a/test/vimrc b/test/vimrc index 32cebb0..eca460a 100644 --- a/test/vimrc +++ b/test/vimrc @@ -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