mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* buildd: Moved Launchpad module imports here - speed up usage
parsing to improve user experience.
This commit is contained in:
parent
8dd4bf61c2
commit
fbc5418533
16
buildd
16
buildd
@ -30,14 +30,6 @@ from optparse import OptionGroup
|
||||
from optparse import OptionParser
|
||||
from urllib import urlencode
|
||||
|
||||
# ubuntu-dev-tools modules.
|
||||
import ubuntutools.lp.cookie as lp_cookie
|
||||
import ubuntutools.lp.functions as lp_functions
|
||||
import ubuntutools.lp.urlopener as lp_urlopener
|
||||
from ubuntutools import packages
|
||||
# https_proxy fix
|
||||
import ubuntutools.common
|
||||
|
||||
# Usage.
|
||||
usage = "%prog <srcpackage> <release> <operation>\n\n"
|
||||
usage += "Where operation may be one of: rescore, retry, or status.\n"
|
||||
@ -105,6 +97,14 @@ elif op in ("retry", "rescore") and options.architecture:
|
||||
else:
|
||||
oneArch = False
|
||||
|
||||
# ubuntu-dev-tools modules.
|
||||
import ubuntutools.lp.cookie as lp_cookie
|
||||
import ubuntutools.lp.functions as lp_functions
|
||||
import ubuntutools.lp.urlopener as lp_urlopener
|
||||
from ubuntutools import packages
|
||||
# https_proxy fix
|
||||
import ubuntutools.common
|
||||
|
||||
# Prepare Launchpad cookie.
|
||||
launchpadCookie = lp_cookie.prepareLaunchpadCookie()
|
||||
urlopener = lp_urlopener.setupLaunchpadUrlOpener(launchpadCookie)
|
||||
|
Loading…
x
Reference in New Issue
Block a user