tools/genboardscfg.py: fix a bug of MAINTAINERS handling
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 22 Aug 2014 05:10:43 +0000 (14:10 +0900)
committerTom Rini <trini@ti.com>
Thu, 28 Aug 2014 21:18:48 +0000 (17:18 -0400)
This patch fixes a minor problem:
If a block without "F:   configs/*_defconfig" is followed by another
block with "F:   configs/*_defconfig", the maintainers from the
former block are squashed into the latter.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tools/genboardscfg.py

index e92e4f8..f179803 100755 (executable)
@@ -142,7 +142,7 @@ class MaintainersDatabase:
                             targets.append(front)
             elif tag == 'S:':
                 status = rest
-            elif line == '\n' and targets:
+            elif line == '\n':
                 for target in targets:
                     self.database[target] = (status, maintainers)
                 targets = []