From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.web12.5280.1588178180488613141 for ; Wed, 29 Apr 2020 09:36:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=nDws5/uB; spf=pass (domain: nuviainc.com, ip: 209.85.221.51, mailfrom: leif@nuviainc.com) Received: by mail-wr1-f51.google.com with SMTP id k1so3341488wrx.4 for ; Wed, 29 Apr 2020 09:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kBPXNc6mLa7NxWU7Uc/e2pmTSrfvbACnSp62t5zNox0=; b=nDws5/uBvScPt1jZaKUOWinzq1vNXk1Rp3U9O4FW8F6bqcPSs0GsgNdeSD0hPIp+cl 7YJMWiVvZ9fSiQyODpt1jD6pahDNW0SDpr8PpeFfRmvEFXG0J0UpRVcOuCpvzm9JZib8 jVbG03EXA3kwxQDEc5gdJYAotqE961DXjio+K4psoGFLTAdHjFoQpm8smZ+k9rhDy+6y s6jBnvPv/kahz02Ox47ANgLer6M2SaryrvPv3RCozsDTXWLjpEqi/58MTTt6yCWoyHTr 0Yb5Y7OUL7DS7VCb1JoDnnyj2ELJIjSI04cgUi0pLhuuDlnuHP1baflB8TZqVj2CQ5E1 Rs7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kBPXNc6mLa7NxWU7Uc/e2pmTSrfvbACnSp62t5zNox0=; b=C15g/ypBPomZTgoo822Nnq8ZQ7gxi3txZbw8vfFDhNxJJr4evebDCU9V/Mpb68uDGX aumm/aNaSgQgV3/CZueNppXcyLnd06QwY8yBv22goJiJstRHfhvFnRCVXwy01198v6I+ na/WJ17gwWaHBaknnhGTQo8U1y+7q1R2oL3iLutCriewxxO4PWo0CoB2hlJwmmTpT1aC LoOmqlKLGlzM8B/DZwzxqKGt96UsBn4y6nbNpdwpkrALWXnJLRVLqrfUiLUF3oAr8m1W qFhdKW+h+4rktoYHZEwm0gFxLzMMVQORZhn6DdlZA5haFw7ndaUFphI3TWVRUQwAJddf U5jQ== X-Gm-Message-State: AGi0PuZdgfc3WMIpmNWPkTsz18OaLL+WrM8nneXDtVMj+US6hbT3S2Vq I+ZVJ2CEiCSIoKgANDPi1OGP4bYt6A4gmSGz3bOaBvCwKPVEqEKH3AlepcOXvSdudPlx3asnNv2 XZMW2zHNedMq5DquPG1H92wbtHXqrGyR9p5/AfAZdYsnFuszG2dpfGPrev+SDimA= X-Google-Smtp-Source: APiQypL6GOV0Y7y/54K/9WCx+h+lacinTNeAQrurnRE0iYTcW/6GCQDl9A0tOt2tcyP5GglWlytRbg== X-Received: by 2002:a5d:420d:: with SMTP id n13mr43854815wrq.204.1588178178724; Wed, 29 Apr 2020 09:36:18 -0700 (PDT) Return-Path: Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id b12sm32690033wro.18.2020.04.29.09.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 09:36:18 -0700 (PDT) From: "Leif Lindholm" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao Subject: [PATCH 1/3] BaseTools: add handling for 'S:' flag to GetMaintainer.py Date: Wed, 29 Apr 2020 17:36:14 +0100 Message-Id: <20200429163616.5951-2-leif@nuviainc.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200429163616.5951-1-leif@nuviainc.com> References: <20200429163616.5951-1-leif@nuviainc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Liming Gao Signed-off-by: Leif Lindholm --- BaseTools/Scripts/GetMaintainer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BaseTools/Scripts/GetMaintainer.py b/BaseTools/Scripts/GetMaintainer.py index fbc63522db77..2ec550e86d36 100644 --- a/BaseTools/Scripts/GetMaintainer.py +++ b/BaseTools/Scripts/GetMaintainer.py @@ -77,8 +77,12 @@ def get_section_maintainers(path, section): matching the provided path in the provided section.""" maintainers = [] lists = [] + nowarn_status = ['Supported', 'Maintained'] if path_in_section(path, section): + for status in section['status']: + if status not in nowarn_status: + print('WARNING: Maintained status for "%s" is \'%s\'!' % (path, status)) for address in section['maintainer'], section['reviewer']: # Convert to list if necessary if isinstance(address, list): -- 2.20.1