]> git.ipfire.org Git - pakfire.git/commitdiff
Allow empty lines in if clauses.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2011 14:51:23 +0000 (16:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2011 14:51:23 +0000 (16:51 +0200)
python/pakfire/packages/lexer.py

index 069ce8393cd086f9304d4e40bd80127270add86a..fd7863270000386e6851e2f69023a4eb5b16088a 100644 (file)
@@ -456,6 +456,12 @@ class Lexer(object):
                                lines.append("%s" % m.groups())
                                continue
 
+                       m = re.match(LEXER_EMPTY_LINE, line)
+                       if m:
+                               self._lineno += 1
+                               lines.append("")
+                               continue
+
                        raise LexerUnhandledLine, "%d: %s" % (self.lineno, line)
 
                if not block_closed: