Message ID | 20231117045929.2824603-1-tim.orling@konsulko.com |
---|---|
State | New |
Headers | show |
Series | [layerindex-web] layerindex/models.py: fix Inactive-Upstream check | expand |
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 = [
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 <tim.orling@konsulko.com> --- layerindex/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)