mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Stupid hack to ignore php-pear dependency triggering php_deps warning
This commit is contained in:
parent
4cee0da0bb
commit
bd6cc2922a
1 changed files with 5 additions and 3 deletions
|
@ -2312,9 +2312,11 @@ class Script(TestSuite):
|
||||||
@test(only=["install", "_common.sh"])
|
@test(only=["install", "_common.sh"])
|
||||||
def php_deps(self):
|
def php_deps(self):
|
||||||
if self.containsregex("dependencies.*php-"):
|
if self.containsregex("dependencies.*php-"):
|
||||||
yield Warning(
|
# (Stupid hack because some apps like roundcube depend on php-pear and there's no phpx.y-pear >_> ...
|
||||||
"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."
|
if not self.contains("php-pear"):
|
||||||
)
|
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."
|
||||||
|
)
|
||||||
|
|
||||||
@test(only=["backup"])
|
@test(only=["backup"])
|
||||||
def systemd_during_backup(self):
|
def systemd_during_backup(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue