Merge pull request #1811 from YunoHost/apt_installed_dpkg_free

helpers: Do not wait for dpkg lock when calling ynh_package_is_installed
This commit is contained in:
Alexandre Aubin 2024-04-05 20:49:02 +02:00 committed by GitHub
commit 93b6ec0276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,6 @@ ynh_package_is_installed() {
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
ynh_wait_dpkg_free
dpkg-query --show --showformat='${Status}' "$package" 2>/dev/null \
| grep --count "ok installed" &>/dev/null
}