chiark / gitweb /
common.prepare_source: better detection of errors
authorTias Guns <tias@ulyssis.org>
Mon, 12 Mar 2012 21:08:43 +0000 (21:08 +0000)
committerTias Guns <tias@ulyssis.org>
Mon, 12 Mar 2012 23:07:41 +0000 (23:07 +0000)
commitb78700245cea3356c91b82107b14a36d877020c8
tree98e2e71abb96b15adc74c9395256707572eacbdf
parent1c0dfcbab93f3bbb0a23743fb871659d6c240bed
common.prepare_source: better detection of errors

when running 'android update', sometimes the program returns an error on
stderr without giving a !=0 errorcode.
This patch detects such an error, and throws a proper BuildException

(in my case, it printed the following to stderr:
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.)
fdroidserver/common.py