From 0bcaf71debf4ed03a7f3b6f3ead9db0dee94c4d8 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Thu, 16 Nov 2023 20:50:14 -0800 Subject: [PATCH] layerindex/models.py: fix Inactive-Upstream check The regex for Upstream-Status had (\w+), but this does not include hyphen/dash. Explicitly add it to the pattern. Signed-off-by: Tim Orling --- layerindex/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/models.py b/layerindex/models.py index 397425a..676f05f 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -550,7 +550,7 @@ class Source(models.Model): def __str__(self): return '%s - %s - %s' % (self.recipe.layerbranch, self.recipe.pn, self.url) -patch_status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*(\w+)([\t ]+.*)?", re.IGNORECASE | re.MULTILINE) +patch_status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*([\w\-]+)([\t ]+.*)?", re.IGNORECASE | re.MULTILINE) class Patch(models.Model): PATCH_STATUS_CHOICES = [