Handle missing gnustep-config gracefully.

pull/43/head
Jussi Pakkanen 10 years ago
parent d5329489a1
commit e3c97bbc28
  1. 6
      dependencies.py

@ -689,9 +689,15 @@ class GnuStepDependency(Dependency):
def detect(self): def detect(self):
confprog = 'gnustep-config' confprog = 'gnustep-config'
try:
gp = subprocess.Popen([confprog, '--help'], gp = subprocess.Popen([confprog, '--help'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
gp.communicate() gp.communicate()
except FileNotFoundError:
self.args = None
mlog.log('Dependency GnuStep found:', mlog.red('NO'), '(no gnustep-config)')
return
if gp.returncode != 0: if gp.returncode != 0:
self.args = None self.args = None
mlog.log('Dependency GnuStep found:', mlog.red('NO')) mlog.log('Dependency GnuStep found:', mlog.red('NO'))

Loading…
Cancel
Save