chiark / gitweb /
Support Build: indenting by tabs
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 27 Oct 2013 21:16:41 +0000 (22:16 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 27 Oct 2013 21:16:41 +0000 (22:16 +0100)
fdroidserver/common.py

index 6a6ed953e4a1b48d63d449d056cb85afd27a2137..c5ef55c0263aff531a91264c9844afd738f90b5a 100644 (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))