]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: add handling for 'S:' flag to GetMaintainer.py
authorLeif Lindholm <leif@nuviainc.com>
Wed, 29 Apr 2020 16:36:14 +0000 (00:36 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 8 May 2020 04:37:08 +0000 (04:37 +0000)
GetMaintainer.py already extracts the value of any S: tags for sections,
but it doesn't do anything with that information.

Print a warning message, with the status, for each matching section with
a status explicitly set to anything other than 'Supported' or
'Maintained'.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/GetMaintainer.py

index fbc63522db77b8d500433c61611b5a26ae92bd6d..ed7bc7dc2b88cabd9a180d651698a59893287f63 100644 (file)
@@ -77,8 +77,12 @@ def get_section_maintainers(path, section):
        matching the provided path in the provided section."""
     maintainers = []
     lists = []
+    nowarn_status = ['Supported', 'Maintained']\r
 
     if path_in_section(path, section):
+        for status in section['status']:\r
+            if status not in nowarn_status:\r
+                print('WARNING: Maintained status for "%s" is \'%s\'!' % (path, status))\r
         for address in section['maintainer'], section['reviewer']:
             # Convert to list if necessary
             if isinstance(address, list):