| Index: cmd/juju/synctools.go |
| === modified file 'cmd/juju/synctools.go' |
| --- cmd/juju/synctools.go 2014-03-10 00:45:41 +0000 |
| +++ cmd/juju/synctools.go 2014-04-01 04:53:43 +0000 |
| @@ -8,6 +8,7 @@ |
| "launchpad.net/gnuflag" |
| "launchpad.net/juju-core/cmd" |
| + "launchpad.net/juju-core/cmd/envcmd" |
| "launchpad.net/juju-core/environs/filestorage" |
| "launchpad.net/juju-core/environs/sync" |
| "launchpad.net/juju-core/version" |
| @@ -18,7 +19,7 @@ |
| // SyncToolsCommand copies all the tools from the us-east-1 bucket to the local |
| // bucket. |
| type SyncToolsCommand struct { |
| - cmd.EnvCommandBase |
| + envcmd.EnvCommandBase |
| allVersions bool |
| versionStr string |
| majorVersion int |
| @@ -63,6 +64,10 @@ |
| } |
| func (c *SyncToolsCommand) Init(args []string) error { |
| + err := c.EnvCommandBase.Init() |
| + if err != nil { |
| + return err |
| + } |
| if c.destination != "" { |
| // Override localDir with destination as localDir now replaces destination |
| c.localDir = c.destination |