Skip to content

Commit ff07dc2

Browse files
committed
Merge pull request kivy#135 from encukou/check_call
build.py: Fail when ant process fails
2 parents fec1a70 + 2654471 commit ff07dc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ def make_package(args):
325325

326326
# Build.
327327
try:
328-
map(lambda arg: subprocess.call([ANT, arg]), args.command)
328+
for arg in args.command:
329+
subprocess.check_call([ANT, arg])
329330
except (OSError, IOError):
330331
print 'An error occured while calling', ANT
331332
print 'Did you install ant on your system ?'

0 commit comments

Comments
 (0)