Automatic transfer of specified built apps to repository during update

This commit is contained in:
Ciaran Gultnieks 2011-01-05 22:20:57 +00:00
parent cde355146c
commit ea7fe6b3e0
4 changed files with 23 additions and 4 deletions

View file

@ -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)