mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Respect options.verbose a bit more in build.py
This commit is contained in:
parent
2b1b2e7497
commit
1765760568
1 changed files with 13 additions and 6 deletions
11
build.py
11
build.py
|
|
@ -85,11 +85,12 @@ for app in apps:
|
||||||
# Silent skip...
|
# Silent skip...
|
||||||
pass
|
pass
|
||||||
elif app['Disabled']:
|
elif app['Disabled']:
|
||||||
|
if options.verbose:
|
||||||
print "Skipping %s: disabled" % app['id']
|
print "Skipping %s: disabled" % app['id']
|
||||||
elif (not app['builds']) or app['Repo Type'] =='' or len(app['builds']) == 0:
|
elif (not app['builds']) or app['Repo Type'] =='' or len(app['builds']) == 0:
|
||||||
|
if options.verbose:
|
||||||
print "Skipping %s: no builds specified" % app['id']
|
print "Skipping %s: no builds specified" % app['id']
|
||||||
else:
|
else:
|
||||||
print "Processing " + app['id']
|
|
||||||
|
|
||||||
build_dir = 'build/' + app['id']
|
build_dir = 'build/' + app['id']
|
||||||
|
|
||||||
|
|
@ -107,12 +108,18 @@ for app in apps:
|
||||||
thisbuild['vercode'] + '_unsigned.apk')
|
thisbuild['vercode'] + '_unsigned.apk')
|
||||||
|
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest):
|
||||||
|
if options.verbose:
|
||||||
print "..version " + thisbuild['version'] + " already exists"
|
print "..version " + thisbuild['version'] + " already exists"
|
||||||
elif thisbuild['commit'].startswith('!'):
|
elif thisbuild['commit'].startswith('!'):
|
||||||
|
if options.verbose:
|
||||||
print ("..skipping version " + thisbuild['version'] + " - " +
|
print ("..skipping version " + thisbuild['version'] + " - " +
|
||||||
thisbuild['commit'][1:])
|
thisbuild['commit'][1:])
|
||||||
else:
|
else:
|
||||||
print "..building version " + thisbuild['version']
|
if options.verbose:
|
||||||
|
mstart = '.. building version '
|
||||||
|
else:
|
||||||
|
mstart = 'Building version '
|
||||||
|
print mstart + thisbuild['version'] + ' of ' + app['id']
|
||||||
|
|
||||||
# Prepare the source code...
|
# Prepare the source code...
|
||||||
root_dir = common.prepare_source(vcs, app, thisbuild,
|
root_dir = common.prepare_source(vcs, app, thisbuild,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue