1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Support Build: indenting by tabs

This commit is contained in:
Daniel Martí 2013-10-27 22:16:41 +01:00
parent dad4f496f0
commit 61a8466ed5

View File

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