mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Automatic transfer of specified built apps to repository during update
This commit is contained in:
parent
cde355146c
commit
ea7fe6b3e0
4 changed files with 23 additions and 4 deletions
|
|
@ -41,6 +41,7 @@ def read_metadata():
|
|||
thisinfo['repotype'] = ''
|
||||
thisinfo['repo'] = ''
|
||||
thisinfo['builds'] = []
|
||||
thisinfo['usebuilt'] = False
|
||||
f = open(metafile, 'r')
|
||||
mode = 0
|
||||
for line in f.readlines():
|
||||
|
|
@ -102,6 +103,9 @@ def read_metadata():
|
|||
pp = p.split('=')
|
||||
thisbuild[pp[0]] = pp[1]
|
||||
thisinfo['builds'].append(thisbuild)
|
||||
elif field == "Use Built":
|
||||
if value == "Yes":
|
||||
thisinfo['usebuilt'] = True
|
||||
else:
|
||||
print "Unrecognised field " + field
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue