build: remove pointless exception handling in oss check

This commit is contained in:
Stefano Pigozzi 2013-11-26 21:32:38 +01:00
parent 803ff1a283
commit 54948f1b62
1 changed files with 5 additions and 9 deletions

View File

@ -81,15 +81,11 @@ def __fail_oss_check__(ctx):
def __get_osslibdir__(): def __get_osslibdir__():
from waflib import Utils from waflib import Utils
try:
cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR'] cmd = ['sh', '-c', '. /etc/oss.conf && echo $OSSLIBDIR']
p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE, p = Utils.subprocess.Popen(cmd, stdin=Utils.subprocess.PIPE,
stdout=Utils.subprocess.PIPE, stdout=Utils.subprocess.PIPE,
stderr=Utils.subprocess.PIPE) stderr=Utils.subprocess.PIPE)
return p.communicate()[0].decode().rstrip() return p.communicate()[0].decode().rstrip()
except Exception:
return ""
def __get_osscflags__(): def __get_osscflags__():
import os import os