Browse Source

Changed dependency format to `addon-info.json`.

- Same format as VAM
pull/558/head
Brian Nash 11 years ago
parent
commit
e279504277
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      autoload/vundle/scripts.vim

+ 5
- 2
autoload/vundle/scripts.vim View File

@ -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


Loading…
Cancel
Save