[fix] Avoid to remove a apt package accidentally (#292)

* [fix] Avoid to remove a apt package accidentally
* [fix] No need --no-remove option with apt update cmd
This commit is contained in:
ljf (zamentur) 2017-04-06 15:34:17 +02:00 committed by Alexandre Aubin
parent 712e69d830
commit c954429cca

View file

@ -43,7 +43,7 @@ ynh_package_update() {
# usage: ynh_package_install name [name [...]] # usage: ynh_package_install name [name [...]]
# | arg: name - the package name to install # | arg: name - the package name to install
ynh_package_install() { ynh_package_install() {
ynh_apt -o Dpkg::Options::=--force-confdef \ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef \
-o Dpkg::Options::=--force-confold install $@ -o Dpkg::Options::=--force-confold install $@
} }