ubuntu-build: explicitly login to LP

LP: #1984113
This commit is contained in:
Dan Streetman 2022-08-09 12:10:05 -04:00
parent 562e6b13cd
commit ad402231db

View File

@ -135,12 +135,14 @@ def main():
Logger.error(error)
sys.exit(1)
# Get the ubuntu archive
try:
ubuntu_archive = Distribution('ubuntu').getArchive()
# Will fail here if we have no credentials, bail out
# Will fail here if we have no credentials, bail out
Launchpad.login()
except IOError:
sys.exit(1)
# Get the ubuntu archive
ubuntu_archive = Distribution('ubuntu').getArchive()
# Get list of published sources for package in question.
try:
sources = ubuntu_archive.getSourcePackage(package, release, pocket)