More cleaning of app install logs: we don't really care about debug for ynh_wait_dpkg_free

This commit is contained in:
Alexandre Aubin 2020-05-17 03:24:26 +02:00
parent 108a3ca498
commit 5c8c07b8c9

View file

@ -10,6 +10,7 @@
# Requires YunoHost version 3.3.1 or higher. # Requires YunoHost version 3.3.1 or higher.
ynh_wait_dpkg_free() { ynh_wait_dpkg_free() {
local try local try
set +o xtrace # set +x
# With seq 1 17, timeout will be almost 30 minutes # With seq 1 17, timeout will be almost 30 minutes
for try in `seq 1 17` for try in `seq 1 17`
do do
@ -32,13 +33,16 @@ ynh_wait_dpkg_free() {
then then
# If so, that a remaining of dpkg. # If so, that a remaining of dpkg.
ynh_print_err "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem." ynh_print_err "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
set -o xtrace # set -x
return 1 return 1
fi fi
done 9<<< "$(ls -1 $dpkg_dir)" done 9<<< "$(ls -1 $dpkg_dir)"
set -o xtrace # set -x
return 0 return 0
fi fi
done done
echo "apt still used, but timeout reached !" echo "apt still used, but timeout reached !"
set -o xtrace # set -x
} }
# Check either a package is installed or not # Check either a package is installed or not