/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: 2019-01-24 00:39:34 UTC
  • mfrom: (7240.1.2 user-agent)
  • Revision ID: breezy.the.bot@gmail.com-20190124003934-th3u42qwnsuyj3qd
Require a newer version of launchpadlib, set correct consumer name.

Merged from https://code.launchpad.net/~jelmer/brz/user-agent/+merge/361859

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
from launchpadlib import uris
62
62
 
63
63
# Declare the minimum version of launchpadlib that we need in order to work.
64
 
# 1.6.0 is the version of launchpadlib packaged in Ubuntu 10.04, the most
65
 
# recent Ubuntu LTS release supported on the desktop at the time of writing.
66
 
MINIMUM_LAUNCHPADLIB_VERSION = (1, 6, 0)
 
64
MINIMUM_LAUNCHPADLIB_VERSION = (1, 6, 3)
67
65
 
68
66
 
69
67
def get_cache_directory():
131
129
    if proxy_info is None:
132
130
        proxy_info = httplib2.proxy_info_from_environment('https')
133
131
    cache_directory = get_cache_directory()
134
 
    launchpad = Launchpad.login_with(
135
 
        'bzr', _get_api_url(service), cache_directory, timeout=timeout,
 
132
    return Launchpad.login_with(
 
133
        'breezy', _get_api_url(service), cache_directory, timeout=timeout,
136
134
        proxy_info=proxy_info, version=version)
137
 
    # XXX: Work-around a minor security bug in launchpadlib < 1.6.3, which
138
 
    # would create this directory with default umask.
139
 
    osutils.chmod_if_possible(cache_directory, 0o700)
140
 
    return launchpad
141
135
 
142
136
 
143
137
class LaunchpadBranch(object):