mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Consistently parse apt dependencies.
Make "x y" proper list of dependencies [`x`, `y`] rather that of [`x y`]
This commit is contained in:
parent
c6cbd26235
commit
21815225cf
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue