Part of bzrlib.plugins.launchpad
The api itself is a RESTful interface, so we can make HTTP queries directly. loading launchpadlib itself has a fairly high overhead (just calling Launchpad.login_anonymously() takes a 500ms once the WADL is cached, and 5+s to get the WADL.
| Class | LatestPublication | Encapsulate how to find the latest publication for a given project. |
| Function | get_latest_publication | Get the most recent publication for a given project. |
| Function | get_most_recent_tag | Get the most recent revision that has been tagged. |
| Function | report_freshness | Report to the user how up-to-date the packaging branch is. |
| Function | _get_newest_versions | Get information about how 'fresh' this packaging branch is. |
| Function | _report_freshness | Report if the branch is up-to-date. |
| Parameters | archive | Either 'ubuntu' or 'debian' |
| series | Something like 'natty', 'sid', etc. Can be set as None. Can also include a pocket such as 'natty-proposed'. | |
| project | Something like 'bzr' | |
| Returns | A version string indicating the most-recent version published in Launchpad. Might return None if there is an error. | |
| Parameters | the_branch | The Branch to check |
| latest_pub | The LatestPublication used to check most recent published version. | |
| Returns | (latest_ver, branch_latest_ver) | |
Report to the user how up-to-date the packaging branch is.
:param the_branch: A Branch object
:param verbosity: Can be one of:
off: Do not print anything, and skip all checks.
all: Print all information that we have in a verbose manner, this
includes misses, etc.
short: Print information, but only one-line summaries
minimal: Only print a one-line summary when the package branch is
out-of-date
:param latest_pub: A LatestPublication instance