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:
parent
9e9e878e8f
commit
3ed6d7e76f
@ -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 != '.':
|
||||
|
Loading…
x
Reference in New Issue
Block a user