fix(2/main) s/preemptsUpdates/preemptsAutoUpdate
addresses... https://github.com/jbenet/go-ipfs/pull/336#discussion_r20397834 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Nov 15, 2014 at 00:39 UTC
56d732f9b18228b5bff9fabbb5462dd5199c4c59
2 files changed
+5
-5
cmd/ipfs2/ipfs.go
+4
-4
@@ -61,7 +61,7 @@ type cmdDetails struct {
61
// command
62
initializesConfig bool
63
64
- preemptsUpdates bool
64
+ preemptsAutoUpdate bool
65
}
66
67
func (d *cmdDetails) String() string {
@@ -84,8 +84,8 @@ var cmdDetailsMap = map[*cmds.Command]cmdDetails{
84
commands.CommandsDaemonCmd: cmdDetails{doesNotUseRepo: true},
85
commands.DiagCmd: cmdDetails{cannotRunOnClient: true},
86
commands.VersionCmd: cmdDetails{doesNotUseRepo: true},
87
- commands.UpdateCmd: cmdDetails{preemptsUpdates: true, cannotRunOnDaemon: true},
88
- commands.UpdateCheckCmd: cmdDetails{preemptsUpdates: true},
89
- commands.UpdateLogCmd: cmdDetails{preemptsUpdates: true},
87
+ commands.UpdateCmd: cmdDetails{preemptsAutoUpdate: true, cannotRunOnDaemon: true},
88
+ commands.UpdateCheckCmd: cmdDetails{preemptsAutoUpdate: true},
89
+ commands.UpdateLogCmd: cmdDetails{preemptsAutoUpdate: true},
90
commands.LogCmd: cmdDetails{cannotRunOnClient: true},
91
}
cmd/ipfs2/main.go
+1
-1
@@ -215,7 +215,7 @@ func callPreCommandHooks(details cmdDetails, req cmds.Request, root *cmds.Comman
215
// check for updates when 1) commands is going to be run locally, 2) the
216
// command does not initialize the config, and 3) the command does not
217
// pre-empt updates
218
- if !daemon && !details.initializesConfig && !details.preemptsUpdates {
218
+ if !daemon && !details.initializesConfig && !details.preemptsAutoUpdate {
219
220
log.Debug("Calling hook: Check for updates")
221