mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #118 from orhtej2/patch-1
Consistently parse apt dependencies.
This commit is contained in:
commit
b5b40510c9
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue