From a7367a3af84e1c009748ece7ba81c02cd6f1ad2b Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 24 Jun 2024 09:34:57 +0200 Subject: [PATCH] avoid an error when no packages are defined in the manifest --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index a267acd..638cff7 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2237,7 +2237,7 @@ class Manifest(TestSuite): resources = self.manifest["resources"] if "apt" in list(resources.keys()): - packages = str(list(resources["apt"].get("packages"))) + packages = str(list(resources["apt"].get("packages", ""))) if "php7.4-" in packages: yield Warning( "The app currently runs on php7.4 which is pretty old (unsupported by the PHP group since January 2023). Ideally, upgrade it to at least php8.2."