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.orl...@konsulko.com> --- 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 = [ -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61712): https://lists.yoctoproject.org/g/yocto/message/61712 Mute This Topic: https://lists.yoctoproject.org/mt/102642223/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-