mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-15 04:11:07 +00:00
lp-shell, import-bug-from-debian:
Use the 'production' LP instance instead of 'edge' (which is going away).
This commit is contained in:
parent
91239a55f7
commit
133f91bbf9
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
ubuntu-dev-tools (0.108) UNRELEASED; urgency=low
|
||||
|
||||
* lp-shell, import-bug-from-debian:
|
||||
Use the 'production' LP instance instead of 'edge' (which is going away).
|
||||
|
||||
-- Michael Bienia <geser@ubuntu.com> Fri, 03 Dec 2010 13:44:53 +0100
|
||||
|
||||
ubuntu-dev-tools (0.107) experimental; urgency=low
|
||||
|
||||
[ Stefano Rivera ]
|
||||
|
@ -17,13 +17,13 @@ It authenticates against Launchpad with the consumer name "udt-lp-shell". When
|
||||
using \fBlp\-shell\fR with the \fB\-a\fR option it will use the anonymous login
|
||||
from launchpadlib.Launchpad.
|
||||
|
||||
By default \fBlp\-shell\fR connects to the "\fIedge\fR" Launchpad service
|
||||
By default \fBlp\-shell\fR connects to the "\fIproduction\fR" Launchpad service
|
||||
using the "\fI1.0\fR" LP API version.
|
||||
|
||||
If you want to connect to another Launchpad service, call \fBlp\-shell\fR with
|
||||
the service name as the second argument. \fBlp\-shell\fR supports all services
|
||||
known by launchpadlib Python module.
|
||||
Currently known are (list can be incomplete or outdated): "production", "edge",
|
||||
Currently known are (list can be incomplete or outdated): "production",
|
||||
"staging", "dogfood".
|
||||
|
||||
A different LP API version can be selected by passing the API version to use as
|
||||
|
@ -50,7 +50,7 @@ parser.add_option("-b", "--browserless",
|
||||
if options.dry_run:
|
||||
lp_server = 'staging'
|
||||
else:
|
||||
lp_server = 'edge'
|
||||
lp_server = 'production'
|
||||
|
||||
try:
|
||||
lp = get_launchpad("ubuntu-dev-tools", lp_server)
|
||||
|
4
lp-shell
4
lp-shell
@ -23,7 +23,7 @@ from optparse import OptionParser
|
||||
from launchpadlib.launchpad import Launchpad
|
||||
from launchpadlib.uris import lookup_service_root
|
||||
|
||||
instance = 'edge'
|
||||
instance = 'production'
|
||||
valid_api_versions = ('beta', '1.0', 'devel')
|
||||
api_version = '1.0'
|
||||
|
||||
@ -40,7 +40,7 @@ if len(args) >= 1:
|
||||
instance = lookup_service_root(args[0])
|
||||
except ValueError, err:
|
||||
print 'E: %s' % (err)
|
||||
print 'I: Falling back to "edge".'
|
||||
print 'I: Falling back to "production".'
|
||||
|
||||
if len(args) >= 2:
|
||||
if args[1] in valid_api_versions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user