update

package
v7.12.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndUpdate

func CheckAndUpdate(config *core.Configuration, updatesEnabled, updateCommand, forceUpdate bool)

CheckAndUpdate checks whether we should update Please and does so if needed. If it requires an update it will never return, it will either die on failure or on success will exec the new Please. Conversely, if an update isn't required it will return. It may adjust the version in the configuration. updatesEnabled indicates whether updates are enabled (i.e. not run with --noupdate) updateCommand indicates whether an update is specifically requested (due to e.g. `plz update`) forceUpdate indicates whether the user passed --force on the command line, in which case we will always update even if the version exists.

func DownloadPyPy

func DownloadPyPy(config *core.Configuration) bool

DownloadPyPy attempts to download a standalone PyPy distribution. We use this to try to deal with the case where there is no loadable interpreter. It also simplifies installation instructions on Linux where we can't use upstream packages often because they aren't built with --enable-shared.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL