diff --git a/port/linux/release_helper.py b/port/linux/release_helper.py index 1d522d0ae..cc984cbb2 100644 --- a/port/linux/release_helper.py +++ b/port/linux/release_helper.py @@ -140,3 +140,9 @@ class PackageReleaseList: with open(file_path, "w") as f: # dump with formating toml.dump(self.pkg_dict, f) + + def findPackage(self, pkg_name:str): + for package in self.packages: + if package.name == pkg_name: + return package + return None