mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Deprecated ynh_detect_arch in favor of $YNH_ARCH
This commit is contained in:
parent
28c515fe5e
commit
8f6aada99a
1 changed files with 4 additions and 0 deletions
|
@ -1991,6 +1991,10 @@ class Script(TestSuite):
|
||||||
yield Info(
|
yield Info(
|
||||||
"ynh_add_app_dependencies is supposed to be an internal helper and will soon be deprecated. Consider using ynh_install_app_dependencies or ynh_install_extra_app_dependencies instead."
|
"ynh_add_app_dependencies is supposed to be an internal helper and will soon be deprecated. Consider using ynh_install_app_dependencies or ynh_install_extra_app_dependencies instead."
|
||||||
)
|
)
|
||||||
|
if self.contains("ynh_detect_arch"):
|
||||||
|
yield Info(
|
||||||
|
"(Requires yunohost 4.3) Using ynh_detect_arch is deprecated, since Yunohost 4.3, an $YNH_ARCH variable is directly available in the global context. Its value directly corresponds to `dpkg --print-architecture` which returns a value among : amd64, i386, armhf, arm64 and armel (though armel is probably not used at all?)"
|
||||||
|
)
|
||||||
|
|
||||||
@test(only=["install", "upgrade"])
|
@test(only=["install", "upgrade"])
|
||||||
def deprecated_replace_string(self):
|
def deprecated_replace_string(self):
|
||||||
|
|
Loading…
Reference in a new issue