From 91c2af27d0aa51f97a0db8f949581da1c4a2edf0 Mon Sep 17 00:00:00 2001 From: bpmcdevitt Date: Thu, 18 Aug 2022 23:27:51 -0500 Subject: [PATCH] added a comment for package version history and change the login part so it doesnt just say just testing when logging in --- tools/ubuntu_package_puller/package_version_history.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/ubuntu_package_puller/package_version_history.py b/tools/ubuntu_package_puller/package_version_history.py index 605daef..1747eb1 100644 --- a/tools/ubuntu_package_puller/package_version_history.py +++ b/tools/ubuntu_package_puller/package_version_history.py @@ -1,15 +1,18 @@ from launchpadlib.launchpad import Launchpad from collections import defaultdict - class PackageVersionHistory: +""" +Use launchpadlib api to query for the package history tree +of a target source_package_name + distro_series +""" def __init__(self, name, distro_series): self.name = name self.distro_series = distro_series self.launchpad = self.login() def login(self): - return Launchpad.login_anonymously('just testing', 'production') + return Launchpad.login_anonymously('package_version_history_lookup', 'production') def set_ubuntu(self): return self.launchpad.distributions['ubuntu']