/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/launchpad/lp_api.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-10 18:19:26 UTC
  • mfrom: (6672.1.3 kill-api)
  • Revision ID: breezy.the.bot@gmail.com-20170610181926-cmki2ndblpjrtn7k
Remove ``breezy.api`` and the concept of API versions.

Merged from https://code.launchpad.net/~jelmer/brz/kill-api/+merge/325442

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    """Raise an error if launchpadlib has the wrong version number."""
73
73
    installed_version = parse_launchpadlib_version(launchpadlib.__version__)
74
74
    if installed_version < MINIMUM_LAUNCHPADLIB_VERSION:
75
 
        raise errors.IncompatibleAPI(
76
 
            'launchpadlib', MINIMUM_LAUNCHPADLIB_VERSION,
77
 
            installed_version, installed_version)
 
75
        raise errors.DependencyNotPresent(
 
76
            'launchpadlib',
 
77
            'At least launchpadlib %s is required, but installed version is %s'
 
78
            % (MINIMUM_LAUNCHPADLIB_VERSION, installed_version))
78
79
 
79
80
 
80
81
def lookup_service_root(service_root):