Consistently parse apt dependencies.

Make "x y" proper list of dependencies [`x`, `y`]  rather that of [`x y`]
This commit is contained in:
orhtej2 2023-09-06 22:47:09 +02:00 committed by GitHub
parent c6cbd26235
commit 21815225cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1967,7 +1967,7 @@ class Manifest(TestSuite):
apt_packages = resources["apt"].get("packages", []) apt_packages = resources["apt"].get("packages", [])
if isinstance(apt_packages, str): 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: if dbtype == "mysql" and "mariadb-server" not in apt_packages:
yield Warning( yield Warning(