~ubuntu-branches/ubuntu/saucy/juju-core/saucy

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/environs/tools.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 16:02:16 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130820160216-5yu1llasa2e2youn
Tags: 1.13.1-0ubuntu1
* New upstream release.
  - Build and install juju metadata plugin.
  - d/NEWS: Add some guidance on upgrading environments from 1.11.x
    to 1.13.x.
* d/NEWS: Add details about lack of upgrade path from juju < 1.11
  and how to interact with older juju environments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import (
7
7
        "fmt"
8
8
 
 
9
        "launchpad.net/juju-core/agent/tools"
9
10
        "launchpad.net/juju-core/constraints"
10
 
        "launchpad.net/juju-core/environs/tools"
11
11
        "launchpad.net/juju-core/errors"
12
12
        "launchpad.net/juju-core/log"
13
 
        "launchpad.net/juju-core/state"
14
13
        "launchpad.net/juju-core/version"
15
14
)
16
15
 
120
119
// TODO(fwereade) this should not exist: it's used by cmd/jujud/Upgrader,
121
120
// which needs to run on every agent and must absolutely *not* in general
122
121
// have access to an Environ.
123
 
func FindExactTools(environ Environ, vers version.Binary) (t *state.Tools, err error) {
 
122
func FindExactTools(environ Environ, vers version.Binary) (t *tools.Tools, err error) {
124
123
        defer convertToolsError(&err)
125
124
        list, err := FindAvailableTools(environ, vers.Major)
126
125
        if err != nil {