mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
avoid an error when no packages are defined in the manifest
This commit is contained in:
parent
e4b8ccb352
commit
a7367a3af8
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue