| author | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2025-10-11 17:00:11 UTC |
| committer | Urja (ARMLFS builder)
<urja+armlfs@urja.dev> 2025-10-11 17:00:11 UTC |
| parent | aa37a198fa782384bb4f305b10ff48fc761d82dc |
| autoupdater_helpers/__init__.py | +2 | -2 |
diff --git a/autoupdater_helpers/__init__.py b/autoupdater_helpers/__init__.py index 0e1682e..7663dd4 100644 --- a/autoupdater_helpers/__init__.py +++ b/autoupdater_helpers/__init__.py @@ -103,9 +103,9 @@ def parse_pkgbuild_ver_sum(fn): if ")" in line: sumnextln = False continue - if line.startswith("pkgver="): + if line.startswith("pkgver=") and 'ver' not in meta: meta['ver'] = line[7:].strip() - if "sums=(" in line: + elif "sums=(" in line and 'sum' not in meta: type, sum = line.strip().split("sums=(",maxsplit=1) if type not in ("b2", "sha512", "sha384", "sha256", "sha224", "sha1", "md5", "ck"): continue