mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Warn when the apt packages list is a string, not a list
This commit is contained in:
parent
b5b40510c9
commit
5b9eaa96d3
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue