Merge pull request #106 from YunoHost/more_php

php-php-gettext exception
This commit is contained in:
Alexandre Aubin 2022-10-03 12:06:19 +02:00 committed by GitHub
commit c82332eb4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."
)