mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Check if the package is actually installed in equivs helper
This commit is contained in:
parent
dea0c16540
commit
dc3e07c4bd
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ ynh_package_install_from_equivs() {
|
|||
-i "./${pkgname}_${pkgversion}_all.deb" 2>&1 \
|
||||
&& sudo apt-get -f -y -qq install) \
|
||||
&& ([[ -n "$TMPDIR" ]] && rm -rf $TMPDIR)
|
||||
|
||||
# check if the package is installed
|
||||
dpkg-query -W -f='${Status}' "$pkgname" 2>/dev/null \
|
||||
| grep 'installed' >/dev/null
|
||||
}
|
||||
|
||||
# Remove package(s)
|
||||
|
|
Loading…
Add table
Reference in a new issue