avoid an error when no packages are defined in the manifest

This commit is contained in:
Kayou 2024-06-24 09:34:57 +02:00 committed by GitHub
parent e4b8ccb352
commit a7367a3af8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."