Skip to content

Commit 545e10f

Browse files
committed
wscript shouldn't fail if 'git describe' doesn't work
1 parent cb79614 commit 545e10f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wscript

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def build_v8(bld):
358358

359359
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
360360

361+
361362
def build(bld):
362363
## This snippet is to show full commands as WAF executes
363364
import Build
@@ -501,7 +502,10 @@ def build(bld):
501502

502503
def subflags(program):
503504
if os.path.exists(join(cwd, ".git")):
504-
actual_version=cmd_output("git describe").strip()
505+
try:
506+
actual_version=cmd_output("git describe").strip()
507+
except:
508+
actual_version=VERSION+'+'
505509
else:
506510
actual_version=VERSION
507511

0 commit comments

Comments
 (0)