From ad402231dbbd9ed0bf22145f6f6daf5bc06a75c7 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Tue, 9 Aug 2022 12:10:05 -0400 Subject: [PATCH] ubuntu-build: explicitly login to LP LP: #1984113 --- ubuntu-build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ubuntu-build b/ubuntu-build index a08a7ef..a557d1e 100755 --- a/ubuntu-build +++ b/ubuntu-build @@ -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)