Pass gracefully if dpkg-architecture is not installed.

pull/68/merge
Jussi Pakkanen 10 years ago
parent 3f7f984a39
commit 28476aa719
  1. 4
      mesonlib.py

@ -132,9 +132,11 @@ def version_compare(vstr1, vstr2):
return cmpop(varr1, varr2)
def default_libdir():
if os.path.isfile('/etc/debian_version'):
try:
archpath = subprocess.check_output(['dpkg-architecture', '-qDEB_HOST_MULTIARCH']).decode().strip()
return 'lib/' + archpath
except FileNotFoundError:
pass
if os.path.isdir('/usr/lib64'):
return 'lib64'
return 'lib'

Loading…
Cancel
Save