mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
lib/oe/qa: remove obsolete "Accepted" string for Upstream-Status
Replaced by "Backport" since release 3.2 https://docs.yoctoproject.org/migration-guides/migration-3.2.html#miscellaneous-changes (From OE-Core rev: 4053fa9184fd016cfa59a67ff7857e17d88bf25e) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
882efa1e45
commit
79cd9301bd
|
@ -216,7 +216,7 @@ def exit_if_errors(d):
|
||||||
def check_upstream_status(fullpath):
|
def check_upstream_status(fullpath):
|
||||||
import re
|
import re
|
||||||
kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE)
|
kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE)
|
||||||
strict_status_re = re.compile(r"^Upstream-Status: (Pending|Submitted|Denied|Accepted|Inappropriate|Backport|Inactive-Upstream)( .+)?$", re.MULTILINE)
|
strict_status_re = re.compile(r"^Upstream-Status: (Pending|Submitted|Denied|Inappropriate|Backport|Inactive-Upstream)( .+)?$", re.MULTILINE)
|
||||||
guidelines = "https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status"
|
guidelines = "https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status"
|
||||||
|
|
||||||
with open(fullpath, encoding='utf-8', errors='ignore') as f:
|
with open(fullpath, encoding='utf-8', errors='ignore') as f:
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
import common
|
import common
|
||||||
import pyparsing
|
import pyparsing
|
||||||
|
|
||||||
upstream_status_literal_valid_status = ["Pending", "Accepted", "Backport", "Denied", "Inappropriate", "Submitted"]
|
upstream_status_literal_valid_status = ["Pending", "Backport", "Denied", "Inappropriate", "Submitted"]
|
||||||
upstream_status_nonliteral_valid_status = ["Pending", "Accepted", "Backport", "Denied", "Inappropriate [reason]", "Submitted [where]"]
|
upstream_status_nonliteral_valid_status = ["Pending", "Backport", "Denied", "Inappropriate [reason]", "Submitted [where]"]
|
||||||
|
|
||||||
upstream_status_valid_status = pyparsing.Or(
|
upstream_status_valid_status = pyparsing.Or(
|
||||||
[pyparsing.Literal(status) for status in upstream_status_literal_valid_status]
|
[pyparsing.Literal(status) for status in upstream_status_literal_valid_status]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user