提交 56d732f9 作者: Brian Tiger Chow

fix(2/main) s/preemptsUpdates/preemptsAutoUpdate

addresses...

https://github.com/jbenet/go-ipfs/pull/336#discussion_r20397834

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 408fadc8
......@@ -61,7 +61,7 @@ type cmdDetails struct {
// command
initializesConfig bool
preemptsUpdates bool
preemptsAutoUpdate bool
}
func (d *cmdDetails) String() string {
......@@ -84,8 +84,8 @@ var cmdDetailsMap = map[*cmds.Command]cmdDetails{
commands.CommandsDaemonCmd: cmdDetails{doesNotUseRepo: true},
commands.DiagCmd: cmdDetails{cannotRunOnClient: true},
commands.VersionCmd: cmdDetails{doesNotUseRepo: true},
commands.UpdateCmd: cmdDetails{preemptsUpdates: true, cannotRunOnDaemon: true},
commands.UpdateCheckCmd: cmdDetails{preemptsUpdates: true},
commands.UpdateLogCmd: cmdDetails{preemptsUpdates: true},
commands.UpdateCmd: cmdDetails{preemptsAutoUpdate: true, cannotRunOnDaemon: true},
commands.UpdateCheckCmd: cmdDetails{preemptsAutoUpdate: true},
commands.UpdateLogCmd: cmdDetails{preemptsAutoUpdate: true},
commands.LogCmd: cmdDetails{cannotRunOnClient: true},
}
......@@ -215,7 +215,7 @@ func callPreCommandHooks(details cmdDetails, req cmds.Request, root *cmds.Comman
// check for updates when 1) commands is going to be run locally, 2) the
// command does not initialize the config, and 3) the command does not
// pre-empt updates
if !daemon && !details.initializesConfig && !details.preemptsUpdates {
if !daemon && !details.initializesConfig && !details.preemptsAutoUpdate {
log.Debug("Calling hook: Check for updates")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论