mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Update package_linter.py
This commit is contained in:
parent
17ef2139fa
commit
5130c78675
1 changed files with 2 additions and 2 deletions
|
@ -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."
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue