mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Improved metadata handling
Two main points: Firstly, there is no longer a random mapping between app['key'] and a corresponding field in the metadata file - the key and field are now the same. Secondly, more information (including comments) is retrieved from the metadata, to facilitate being able to re-write it which is necessary for various support utilities.
This commit is contained in:
parent
c9c824f57d
commit
c469f0feed
5 changed files with 157 additions and 117 deletions
8
build.py
8
build.py
|
@ -74,13 +74,13 @@ if not os.path.isdir(build_dir):
|
|||
|
||||
for app in apps:
|
||||
|
||||
if app['disabled']:
|
||||
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
|
||||
if (app['Disabled'] is None and app['Repo'] != ''
|
||||
and app['Repo Type'] != '' and (options.package is None or
|
||||
options.package == app['id']) and len(app['builds']) > 0):
|
||||
|
||||
print "Processing " + app['id']
|
||||
|
@ -88,7 +88,7 @@ for app in apps:
|
|||
build_dir = 'build/' + app['id']
|
||||
|
||||
# Set up vcs interface and make sure we have the latest code...
|
||||
vcs = common.getvcs(app['repotype'], app['repo'], build_dir)
|
||||
vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir)
|
||||
|
||||
refreshed_source = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue