mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix an issue where postgresql-9.4 was being detected as installed whereas it was in fact not
This commit is contained in:
parent
270bfb54cd
commit
969577b4c2
1 changed files with 1 additions and 1 deletions
|
@ -38,6 +38,6 @@ class MyMigration(Migration):
|
||||||
|
|
||||||
def package_is_installed(self, package_name):
|
def package_is_installed(self, package_name):
|
||||||
|
|
||||||
p = subprocess.Popen("dpkg --list | grep -q -w {}".format(package_name), shell=True)
|
p = subprocess.Popen("dpkg --list | grep '^ii ' | grep -q -w {}".format(package_name), shell=True)
|
||||||
p.communicate()
|
p.communicate()
|
||||||
return p.returncode == 0
|
return p.returncode == 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue