mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Be more verbose about build skips and failures.
Dump reasons and locations.
This commit is contained in:
parent
01fd3210d2
commit
39354f00b6
1 changed files with 7 additions and 2 deletions
9
build.py
9
build.py
|
|
@ -58,6 +58,11 @@ if not os.path.exists(built_dir):
|
||||||
|
|
||||||
for app in apps:
|
for app in apps:
|
||||||
|
|
||||||
|
if app['disabled']:
|
||||||
|
print "Skipping %s: disabled" % app['id']
|
||||||
|
elif not app['builds']:
|
||||||
|
print "Skipping %s: no builds specified" % app['id']
|
||||||
|
|
||||||
if (app['disabled'] is None and app['repo'] != ''
|
if (app['disabled'] is None and app['repo'] != ''
|
||||||
and app['repotype'] != '' and (options.package is None or
|
and app['repotype'] != '' and (options.package is None or
|
||||||
options.package == app['id']) and len(app['builds']) > 0):
|
options.package == app['id']) and len(app['builds']) > 0):
|
||||||
|
|
@ -414,7 +419,7 @@ for app in apps:
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
print output
|
print output
|
||||||
print "NDK build failed"
|
print "NDK build failed for %s:%s" % (app['id'], thisbuild['version'])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif options.verbose:
|
elif options.verbose:
|
||||||
print output
|
print output
|
||||||
|
|
@ -434,7 +439,7 @@ for app in apps:
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
print output
|
print output
|
||||||
print "Build failed"
|
print "Build failed for %s:%s" % (app['id'], thisbuild['version'])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif options.verbose:
|
elif options.verbose:
|
||||||
print output
|
print output
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue