mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Force dependencies upgrade even if previous version is accepted
This commit is contained in:
parent
7aa840a956
commit
b59348fffe
1 changed files with 6 additions and 0 deletions
|
@ -425,6 +425,12 @@ ynh_install_extra_app_dependencies() {
|
|||
# Install requested dependencies from this extra repository.
|
||||
ynh_install_app_dependencies "$package"
|
||||
|
||||
# Force to upgrade to the last version...
|
||||
# Without doing apt install, an already installed dep is not upgraded
|
||||
local apps_auto_installed="$(apt-mark showauto $package)"
|
||||
ynh_package_install "$package"
|
||||
apt-mark auto $apps_auto_installed
|
||||
|
||||
# Remove this extra repository after packages are installed
|
||||
ynh_remove_extra_repo --name=$app
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue