1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

build: nicer error msg when git ls-files fails

This commit is contained in:
Andrew Tridgell 2010-04-04 10:23:43 +10:00
parent 9e9e878e8f
commit 3ed6d7e76f

View File

@ -45,7 +45,11 @@ def dist():
destdir = '.'
absdir = os.path.join(srcdir, dir)
git_cmd = [ env.GIT, 'ls-files', '--full-name', absdir ]
files = Utils.cmd_output(git_cmd).split()
try:
files = Utils.cmd_output(git_cmd).split()
except:
print('git command failed: %s' % ' '.join(git_cmd))
sys.exit(1)
for f in files:
abspath = os.path.join(srcdir, f)
if dir != '.':