Permalink
Browse files

fix: show addon info data for sources which are defined by dependenci…

…es section in addon-info, and make their installation work

Also add log_to_buf to recommended setup (commented), because tis that nice
  • Loading branch information...
1 parent c30898d commit 96e3ab235a07fa03982eec1352c597259674655b @MarcWeber committed Sep 22, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −2 autoload/vam/install.vim
  2. +2 −0 doc/vim-addon-manager-getting-started.txt
View
6 autoload/vam/install.vim
@@ -69,7 +69,7 @@ endfun
fun! vam#install#GetRepo(name, opts)
if a:name isnot# s:c['known'] | call vam#install#LoadPool() |endif
- let repository = get(s:c['plugin_sources'], a:name, get(a:opts, a:name, 0))
+ let repository = get(s:c['plugin_sources'], a:name, get(get(a:opts, 'plugin_sources', {}), a:name, 0))
if repository is 0
unlet repository
for key in sort(keys(s:c.name_rewriting))
@@ -172,7 +172,9 @@ fun! vam#install#Install(toBeInstalledList, ...)
" tell user about target directory. Some users don't get it the first time..
let pluginDir = vam#PluginDirFromName(name)
- call vam#DisplayAddonInfo(name)
+ " call vam#DisplayAddonInfo(name), can't use due to plugin_sources
+ call vam#Log(join(vam#DisplayAddonInfoLines(name, repository),"\n"), 'None')
+
call vam#Log('Target: '.pluginDir, 'None')
if (has_key(opts, 'requested_by'))
call vam#Log('Dependency chain: '.join([name]+opts.requested_by,' < '))
View
2 doc/vim-addon-manager-getting-started.txt
@@ -147,6 +147,8 @@ recommended setup ~
" Set advanced options like this:
" let g:vim_addon_manager = {}
" let g:vim_addon_manager['key'] = value
+ " Pipe all output into a buffer which gets written to disk
+ " let g:vim_addon_manager['log_to_buf'] =1
" Example: drop git sources unless git is in PATH. Same plugins can
" be installed from www.vim.org. Lookup MergeSources to get more control

0 comments on commit 96e3ab2

Please sign in to comment.