1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Don't require commit to be specified for a disabled build

This commit is contained in:
Ciaran Gultnieks 2013-10-28 08:53:18 +00:00
parent a546013756
commit 8627357cd9

View File

@ -547,7 +547,7 @@ def parse_metadata(metafile, verbose=False):
line = line.rstrip('\r\n') line = line.rstrip('\r\n')
if mode == 3: if mode == 3:
if not any(line.startswith(s) for s in (' ', '\t')): if not any(line.startswith(s) for s in (' ', '\t')):
if 'commit' not in curbuild: if 'commit' not in curbuild and 'disable' not in curbuild:
raise MetaDataException("No commit specified for {0} in {1}".format( raise MetaDataException("No commit specified for {0} in {1}".format(
curbuild['version'], metafile.name)) curbuild['version'], metafile.name))
thisinfo['builds'].append(curbuild) thisinfo['builds'].append(curbuild)