From 21815225cf4b29f74ac23c89a60524e99f474aeb Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Wed, 6 Sep 2023 22:47:09 +0200 Subject: [PATCH] Consistently parse apt dependencies. Make "x y" proper list of dependencies [`x`, `y`] rather that of [`x y`] --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 66e9851..281684a 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1967,7 +1967,7 @@ class Manifest(TestSuite): apt_packages = resources["apt"].get("packages", []) if isinstance(apt_packages, str): - apt_packages = [value.strip() for value in apt_packages.split(",")] + apt_packages = [value.strip() for value in re.split(' |,',apt_packages)] if dbtype == "mysql" and "mariadb-server" not in apt_packages: yield Warning(