1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 06:20:12 +01:00

Merge commit 'refs/merge-requests/21' of git://gitorious.org/f-droid/fdroidserver into merge-requests/21

This commit is contained in:
Ciaran Gultnieks 2011-06-17 08:35:56 +01:00
commit 36750e7c1e
2 changed files with 12 additions and 4 deletions

View File

@ -56,15 +56,23 @@ if options.clean:
if not os.path.exists(built_dir):
os.mkdir(built_dir)
if not os.path.isdir('build'):
os.makedirs('build')
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'] != ''
and app['repotype'] != '' and (options.package is None or
options.package == app['id']) and len(app['builds']) > 0):
print "Processing " + app['id']
build_dir = 'build_' + app['id']
build_dir = 'build/' + app['id']
got_source = False
@ -428,7 +436,7 @@ for app in apps:
output = p.communicate()[0]
if p.returncode != 0:
print output
print "NDK build failed"
print "NDK build failed for %s:%s" % (app['id'], thisbuild['version'])
sys.exit(1)
elif options.verbose:
print output
@ -448,7 +456,7 @@ for app in apps:
output = p.communicate()[0]
if p.returncode != 0:
print output
print "Build failed"
print "Build failed for %s:%s" % (app['id'], thisbuild['version'])
sys.exit(1)
elif options.verbose:
print output

View File

@ -153,7 +153,7 @@ def parse_metadata(metafile, **kw):
def read_metadata(verbose=False):
apps = []
for metafile in glob.glob(os.path.join('metadata', '*.txt')):
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
if verbose:
print "Reading " + metafile
apps.append(parse_metadata(metafile, verbose=verbose))