From c6c7d4727dcfa7cb666516e5cdd8532b40063ef6 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 11 Jun 2024 23:06:13 +0300 Subject: [PATCH] Fix elpa parsing --- repology/parsers/parsers/elpa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repology/parsers/parsers/elpa.py b/repology/parsers/parsers/elpa.py index b0b1ff484..107cf98bb 100644 --- a/repology/parsers/parsers/elpa.py +++ b/repology/parsers/parsers/elpa.py @@ -52,7 +52,7 @@ def _parse_data(data: str) -> list[_PackageData]: keyval_keywords = (lpar + Suppress(':keywords') + ZeroOrMore(qstring) + rpar).setParseAction(lambda s, l, t: [('keywords', [str(k) for k in t])]) keyval_commit = (lpar + Suppress(':commit') + dot + qstring + rpar).setParseAction(lambda s, l, t: [('commit', t[0])]) keyval_maintainer = (lpar + Suppress(':maintainer') + people_list + rpar).setParseAction(lambda s, l, t: [('maintainer', [str(m) for m in t])]) - keyval_maintainers = (lpar + Suppress(':maintainers') + lpar + people_list + rpar + rpar).setParseAction(lambda s, l, t: [('maintainers', [str(m) for m in t])]) + keyval_maintainers = (lpar + Suppress(':maintainer') + OneOrMore(lpar + people_list + rpar) + rpar).setParseAction(lambda s, l, t: [('maintainers', [str(m) for m in t])]) keyval_author = (lpar + Suppress(':author') + people_list + rpar).setParseAction(lambda s, l, t: [('author', [str(a) for a in t])]) keyval_authors = (lpar + Suppress(':authors') + OneOrMore(lpar + people_list + rpar) + rpar).setParseAction(lambda s, l, t: [('authors', [str(a) for a in t])])