From 5b9eaa96d3d9fd98cdc118c94b730f490207a706 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Thu, 7 Sep 2023 15:54:41 +0200 Subject: [PATCH] Warn when the apt packages list is a string, not a list --- package_linter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package_linter.py b/package_linter.py index 281684a..6e25c7e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1967,6 +1967,9 @@ class Manifest(TestSuite): apt_packages = resources["apt"].get("packages", []) if isinstance(apt_packages, str): + yield Warning( + "The packages list should be a TOML list, like [ 'package1', 'package2' ]. Using a string separated with commas/spaces will be deprecated in the future." + ) apt_packages = [value.strip() for value in re.split(' |,',apt_packages)] if dbtype == "mysql" and "mariadb-server" not in apt_packages: