]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tools/genboardscfg.py: pick up also commented maitainers
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 16 Sep 2014 05:11:49 +0000 (14:11 +0900)
committerTom Rini <trini@ti.com>
Wed, 24 Sep 2014 22:30:28 +0000 (18:30 -0400)
We are still keeping invalid email addressed in MAINTAINERS
because they carry information.

The problem is that scripts/get_maintainer.pl adds emails in the
"M:" field including invalid ones.

We want to comment out invalid email addresses in MAINTAINERS
to prevent scripts/get_maintainer.pl from picking them up.
On the other hand, we want to collect them for boards.cfg
to know the last known maintainer of each board.

This commit adjusts tools/genboardscfg.py to parse also
the commented "M:" fields, which is useful for the next commit.

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

index 654100bf07ed692fe5cbd7f1cee5461a95c8414c..23c956bb8ec3ad2928c6f4703c7584df8e9c9e72 100755 (executable)
@@ -328,6 +328,9 @@ class MaintainersDatabase:
         maintainers = []
         status = '-'
         for line in open(file):
+            # Check also commented maintainers
+            if line[:3] == '#M:':
+                line = line[1:]
             tag, rest = line[:2], line[2:].strip()
             if tag == 'M:':
                 maintainers.append(rest)