mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
28 lines
891 B
Bash
28 lines
891 B
Bash
ynhtest_apt_install_apt_deps_regular() {
|
|
|
|
cat << EOF > ../manifest.toml
|
|
packaging_format = 2
|
|
id = "$app"
|
|
version = "0.1~ynh2"
|
|
EOF
|
|
|
|
dpkg --list | grep -q "ii *$app-ynh-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_apt_package_is_installed "$app-ynh-deps"
|
|
! _ynh_apt_package_is_installed "nyancat"
|
|
! _ynh_apt_package_is_installed "sl"
|
|
|
|
ynh_apt_install_dependencies "nyancat sl"
|
|
|
|
_ynh_apt_package_is_installed "$app-ynh-deps"
|
|
_ynh_apt_package_is_installed "nyancat"
|
|
_ynh_apt_package_is_installed "sl"
|
|
|
|
ynh_apt_remove_dependencies
|
|
|
|
! _ynh_apt_package_is_installed "$app-ynh-deps"
|
|
! _ynh_apt_package_is_installed "nyancat"
|
|
! _ynh_apt_package_is_installed "sl"
|
|
}
|