mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
assert_we_have_all_dependencies
This commit is contained in:
parent
706349abde
commit
88cf83cd8e
2 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,13 @@ assert_we_are_connected_to_the_internets() {
|
||||||
|| log_critical "Unable to connect to internet."
|
|| log_critical "Unable to connect to internet."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert_we_have_all_dependencies() {
|
||||||
|
for dep in "lxc" "lynx"
|
||||||
|
do
|
||||||
|
which $dep 2>&1 > /dev/null || log_critical "Please install $dep"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function check_lxd_setup()
|
function check_lxd_setup()
|
||||||
{
|
{
|
||||||
# Check lxd is installed somehow
|
# Check lxd is installed somehow
|
||||||
|
|
|
@ -184,6 +184,7 @@ FETCH_PACKAGE_TO_TEST() {
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
assert_we_are_connected_to_the_internets
|
assert_we_are_connected_to_the_internets
|
||||||
|
assert_we_have_all_dependencies
|
||||||
#self_upgrade # FIXME renenable this later
|
#self_upgrade # FIXME renenable this later
|
||||||
fetch_or_upgrade_package_linter
|
fetch_or_upgrade_package_linter
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue