From 5130c78675a55352b8ab672bd725e417b954bfdf Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 2 Oct 2022 22:13:17 +0200 Subject: [PATCH] Update package_linter.py --- package_linter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package_linter.py b/package_linter.py index 4276d9e..a9b2d8d 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2391,8 +2391,8 @@ class Script(TestSuite): @test(only=["install", "_common.sh"]) def php_deps(self): if self.containsregex("dependencies.*php-"): - # (Stupid hack because some apps like roundcube depend on php-pear and there's no phpx.y-pear >_> ... - if not self.contains("php-pear"): + # (Stupid hack because some apps like roundcube depend on php-pear or php-php-gettext and there's no phpx.y-pear phpx.y-php-gettext>_> ... + if not self.contains("php-pear") or not self.contains("php-php-gettext"): yield Warning( "You should avoid having dependencies like 'php-foobar'. Instead, specify the exact version you want like 'php7.0-foobar'. Otherwise, the *wrong* version of the dependency may be installed if sury is also installed. Note that for Stretch/Buster/Bullseye/... transition, YunoHost will automatically patch your file so there's no need to care about that." )