Unverified Commit 6fec8910 authored by Maxim Baz's avatar Maxim Baz
Browse files

validate common fields

parent 05527db7
......@@ -145,6 +145,15 @@ async def main() -> int:
"checkdepends": pkginfo.get("checkdepend"),
"packages": [],
# validate that common fields of every pkg have the same values within the same pkgbase
if (
pkgbases[repo][pkgbase]["version"] != pkginfo["pkgver"][0]
or pkgbases[repo][pkgbase]["makedepends"] != pkginfo.get("makedepend")
or pkgbases[repo][pkgbase]["checkdepends"] != pkginfo.get("checkdepend")
raise RuntimeError(f"Common fields differ in pkgbase='{pkgbase}'")
build_pkgmeta(pkgpath, pkginfo, pkgfiles)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment