From 2107a84852b0c5be2c64d1095c7928a33674e693 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 3 Feb 2023 02:41:28 +0100 Subject: [PATCH] appv2 resources: document the fact that the apt resource may create a phpversion setting when the dependencies contain php packages --- src/utils/resources.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/resources.py b/src/utils/resources.py index 96e1b349d..65c8ee8cd 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -703,6 +703,7 @@ class AptDependenciesAppResource(AppResource): ##### Provision/Update: - The code literally calls the bash helpers `ynh_install_app_dependencies` and `ynh_install_extra_app_dependencies`, similar to what happens in v1. + - Note that when `packages` contains some phpX.Y-foobar dependencies, this will automagically define a `phpversion` setting equal to `X.Y` which can therefore be used in app scripts ($phpversion) or templates (`__PHPVERSION__`) ##### Deprovision: - The code literally calls the bash helper `ynh_remove_app_dependencies`