juju/juju — pull request #190 by sinzui (2014-06-27 19:18:55+00:00)
Title: Backport fix-os-version to 1.20.

This is a cherry-pick of Dave's fix for the windows version to 1.20.

Merge pull request #186 from davecheney/fix-os-version
Fix os version

Fix Lp 1334493

Remove all the double underpants // +build tags, the os is inferred from the name of the file.

Remove osversion_unknown.go, Juju cannot operate without knowing the series of the machine, so cause a compilation failure, rather than produce tools that explode on use.

lucky(~/src/github.com/juju/juju/version) % GOOS=windows go list -f '{{.GoFiles}}'
[osversion.go osversion_windows.go supportedseries.go version.go]
lucky(~/src/github.com/juju/juju/version) % GOOS=linux go list -f '{{.GoFiles}}'
[osversion.go osversion_linux.go supportedseries.go version.go]
lucky(~/src/github.com/juju/juju/version) % GOOS=darwin go list -f '{{.GoFiles}}'
[osversion.go osversion_darwin.go supportedseries.go version.go]