mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers: new apt test for build deps
This commit is contained in:
parent
b73cae7816
commit
95d10c3b92
1 changed files with 7 additions and 0 deletions
|
@ -1,18 +1,25 @@
|
|||
ynhtest_apt_install_apt_deps_regular() {
|
||||
|
||||
dpkg --list | grep -q "ii *$app-ynh-deps" && apt remove $app-ynh-deps --assume-yes || true
|
||||
dpkg --list | grep -q "ii *$app-ynh-build-deps" && apt remove $app-ynh-deps --assume-yes || true
|
||||
dpkg --list | grep -q 'ii *nyancat' && apt remove nyancat --assume-yes || true
|
||||
dpkg --list | grep -q 'ii *sl' && apt remove sl --assume-yes || true
|
||||
|
||||
! ynh_package_is_installed "$app-ynh-deps"
|
||||
! ynh_package_is_installed "$app-ynh-build-deps"
|
||||
! ynh_package_is_installed "nyancat"
|
||||
! ynh_package_is_installed "sl"
|
||||
|
||||
ynh_install_app_dependencies "nyancat sl"
|
||||
|
||||
ynh_package_is_installed "$app-ynh-deps"
|
||||
ynh_package_is_installed "$app-ynh-build-deps"
|
||||
ynh_package_is_installed "nyancat"
|
||||
ynh_package_is_installed "sl"
|
||||
|
||||
ynh_remove_app_build_dependencies
|
||||
|
||||
! ynh_package_is_installed "$app-ynh-build-deps"
|
||||
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue