Merge branch 'master' of github.com:GeoffreyFrogeye/dotfiles
This commit is contained in:
commit
758576532b
|
@ -15,8 +15,8 @@ DEBIAN_MIRROR = 'http://debian.polytech-lille.fr/debian/'
|
||||||
|
|
||||||
def globallyInstalled(name):
|
def globallyInstalled(name):
|
||||||
try:
|
try:
|
||||||
a = subprocess.check_output(['apt-cache', 'policy', 'name']).decode('utf8').strip().lower()
|
a = subprocess.check_output(['apt-cache', 'policy', name]).decode('utf8').strip().lower()
|
||||||
return 'Installed: (none)' not in [b.strip() for b in a.decode('utf8').split('\n')]
|
return 'installé\xa0: (aucun)' not in [b.strip() for b in a.split('\n')]
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue