commit | 21be81676ffaf49d27d2b149f5f452e106fd4a03 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Thu May 10 20:36:37 2018 -0400 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Thu May 10 20:37:18 2018 -0400 |
tree | a9e9f4705613aa41b88d6e555f52ee9d1f6fd29e | |
parent | 844b09331bfca9cd06a96775e39bee8225cb2220 [diff] |
build: ignore OSError raised by subprocess.check_output() For example, when git is not installed. Change-Id: I2a44b9c647e2b2e0344e2c831217db1595a9db68
diff --git a/wscript b/wscript index f37418d..ee3f835 100644 --- a/wscript +++ b/wscript
@@ -343,7 +343,7 @@ else: # no tags matched Context.g_module.VERSION = '%s-commit-%s' % (VERSION_BASE, out) - except subprocess.CalledProcessError: + except (OSError, subprocess.CalledProcessError): pass versionFile = ctx.path.find_node('VERSION')