mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #117 from Salamandar/fix_apt_linter
Fix package linter on apt list
This commit is contained in:
commit
c6cbd26235
1 changed files with 5 additions and 1 deletions
|
@ -1964,7 +1964,11 @@ class Manifest(TestSuite):
|
||||||
)
|
)
|
||||||
|
|
||||||
dbtype = resources["database"]["type"]
|
dbtype = resources["database"]["type"]
|
||||||
apt_packages = [p.strip(',') for p in resources["apt"].get("packages", "").split(" ")]
|
|
||||||
|
apt_packages = resources["apt"].get("packages", [])
|
||||||
|
if isinstance(apt_packages, str):
|
||||||
|
apt_packages = [value.strip() for value in apt_packages.split(",")]
|
||||||
|
|
||||||
if dbtype == "mysql" and "mariadb-server" not in apt_packages:
|
if dbtype == "mysql" and "mariadb-server" not in apt_packages:
|
||||||
yield Warning(
|
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 !"
|
"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 !"
|
||||||
|
|
Loading…
Reference in a new issue