diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index d665516..ec695b5 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -262,8 +262,11 @@ endf " return -- List of bundle names. " --------------------------------------------------------------------------- func! vundle#scripts#getdeps(bundle) - if !empty(glob(a:bundle['rtpath'] . '/depends.txt')) - return eval("['" . join(readfile(a:bundle['rtpath'] . '/depends.txt'), "','") . "']") + if !empty(glob(a:bundle['rtpath'] . '/addon-info.json')) + let true = 1 + let false = 0 + let null = '' + return keys(get(eval(join(readfile(a:bundle['rtpath'] . '/addon-info.json'), '')), 'dependencies', {})) else return [] endif