From 3052fc966f5835487cdc82123f9f961c533d856d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 26 Feb 2023 13:01:40 +0100 Subject: [PATCH] Improve parsing of apt packages in v2 manifests --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index d5ae29b..138ba9a 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1933,7 +1933,7 @@ class Manifest(TestSuite): ) dbtype = resources["database"]["type"] - apt_packages = resources["apt"].get("packages", "").split(", ") + apt_packages = [p.strip(',') for p in resources["apt"].get("packages", "").split(" ")] if dbtype == "mysql" and "mariadb-server" not in apt_packages: yield Warning( "When using a mysql database, you should add mariadb-server in apt dependencies. Even though it's currently installed by default in YunoHost installations, it might not be in the future !"