From 545e10f2399dd748f6261919ed3db177d02ef008 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 21 Jun 2010 10:21:55 -0700 Subject: [PATCH] wscript shouldn't fail if 'git describe' doesn't work --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 95162451987..cc2ef733b32 100644 --- a/wscript +++ b/wscript @@ -358,6 +358,7 @@ def build_v8(bld): bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h') + def build(bld): ## This snippet is to show full commands as WAF executes import Build @@ -501,7 +502,10 @@ def build(bld): def subflags(program): if os.path.exists(join(cwd, ".git")): - actual_version=cmd_output("git describe").strip() + try: + actual_version=cmd_output("git describe").strip() + except: + actual_version=VERSION+'+' else: actual_version=VERSION