mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
More cleaning of app install logs: we don't really care about debug for ynh_wait_dpkg_free
This commit is contained in:
parent
108a3ca498
commit
5c8c07b8c9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue