Handle missing gnustep-config gracefully.

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

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

Loading…
Cancel
Save