mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-24 13:21:29 +00:00
ubuntu-build: remove unused code/imports
This commit is contained in:
parent
d7362d9ed8
commit
92c80d7bb7
@ -29,7 +29,6 @@ import argparse
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import lazr.restfulclient.errors
|
import lazr.restfulclient.errors
|
||||||
from launchpadlib.credentials import TokenAuthorizationException
|
|
||||||
from launchpadlib.launchpad import Launchpad
|
from launchpadlib.launchpad import Launchpad
|
||||||
|
|
||||||
from ubuntutools import getLogger
|
from ubuntutools import getLogger
|
||||||
@ -152,8 +151,6 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
launchpad = Launchpad.login_with("ubuntu-dev-tools", "production", version="devel")
|
launchpad = Launchpad.login_with("ubuntu-dev-tools", "production", version="devel")
|
||||||
me = launchpad.me
|
|
||||||
|
|
||||||
ubuntu = launchpad.distributions["ubuntu"]
|
ubuntu = launchpad.distributions["ubuntu"]
|
||||||
|
|
||||||
if args.batch:
|
if args.batch:
|
||||||
@ -222,7 +219,7 @@ def main():
|
|||||||
source_name=package,
|
source_name=package,
|
||||||
status="Published",
|
status="Published",
|
||||||
)[0]
|
)[0]
|
||||||
except IndexError as error:
|
except IndexError:
|
||||||
Logger.error("No publication found for package %s", package)
|
Logger.error("No publication found for package %s", package)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
# Get list of builds for that package.
|
# Get list of builds for that package.
|
||||||
@ -411,7 +408,7 @@ def main():
|
|||||||
source_name=pkg,
|
source_name=pkg,
|
||||||
status="Published",
|
status="Published",
|
||||||
)[0]
|
)[0]
|
||||||
except IndexError as error:
|
except IndexError:
|
||||||
Logger.error("No publication found for package %s", pkg)
|
Logger.error("No publication found for package %s", pkg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user