@cryptotaxi247 / kubo / commits / a97234288

rm updates...

Brian Tiger Chow committed Jan 20, 2015 at 06:19 UTC a97234288dd165d3471f28340fe6832223ac7760
1 file changed -24
cmd/ipfs/main.go
-24
@@ -24,7 +24,6 @@ import (
24 config "github.com/jbenet/go-ipfs/repo/config"
25 fsrepo "github.com/jbenet/go-ipfs/repo/fsrepo"
26 eventlog "github.com/jbenet/go-ipfs/thirdparty/eventlog"
27 - updates "github.com/jbenet/go-ipfs/updates"
27 u "github.com/jbenet/go-ipfs/util"
28 "github.com/jbenet/go-ipfs/util/debugerror"
29 )
@@ -265,29 +264,6 @@ func callPreCommandHooks(ctx context.Context, details cmdDetails, req cmds.Reque
264 log.Event(ctx, "callPreCommandHooks", &details)
265 log.Debug("Calling pre-command hooks...")
266
268 - // some hooks only run when the command is executed locally
269 - daemon, err := commandShouldRunOnDaemon(details, req, root)
270 - if err != nil {
271 - return err
272 - }
273 -
274 - // check for updates when 1) commands is going to be run locally, 2) the
275 - // command does not initialize the config, and 3) the command does not
276 - // pre-empt updates
277 - if !daemon && details.usesConfigAsInput() && details.doesNotPreemptAutoUpdate() {
278 -
279 - log.Debug("Calling hook: Check for updates")
280 -
281 - cfg, err := req.Context().GetConfig()
282 - if err != nil {
283 - return err
284 - }
285 - // Check for updates and potentially install one.
286 - if err := updates.CliCheckForUpdates(cfg, req.Context().ConfigRoot); err != nil {
287 - return err
288 - }
289 - }
290 -
267 return nil
268 }
269