checksum: remove args (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-13 23:19:00 +02:00 committed by Oliver Smith
parent c1aa5acdaa
commit 53bdb523e3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 7 additions and 7 deletions

View file

@ -12,10 +12,10 @@ import pmb.helpers.pmaports
from pmb.core import Chroot
def update(args: PmbArgs, pkgname):
def update(pkgname):
"""Fetch all sources and update the checksums in the APKBUILD."""
pmb.build.init_abuild_minimal()
pmb.build.copy_to_buildpath(args, pkgname)
pmb.build.copy_to_buildpath(pkgname)
logging.info("(native) generate checksums for " + pkgname)
pmb.chroot.user(["abuild", "checksum"],
working_dir=Path("/home/pmos/build"))
@ -26,10 +26,10 @@ def update(args: PmbArgs, pkgname):
pmb.helpers.run.user(["cp", source, target])
def verify(args: PmbArgs, pkgname):
def verify(pkgname):
"""Fetch all sources and verify their checksums."""
pmb.build.init_abuild_minimal()
pmb.build.copy_to_buildpath(args, pkgname)
pmb.build.copy_to_buildpath(pkgname)
logging.info("(native) verify checksums for " + pkgname)
# Fetch and verify sources, "fetch" alone does not verify them:

View file

@ -164,7 +164,7 @@ def menuconfig(args: PmbArgs, pkgname: str, use_oldconfig):
config = "config-" + apkbuild["_flavor"] + "." + arch
target = aport / config
pmb.helpers.run.user(["cp", source, target])
pmb.build.checksum.update(args, pkgname)
pmb.build.checksum.update(pkgname)
# Check config
pmb.parse.kconfig.check(args, apkbuild["_flavor"], details=True)

View file

@ -144,9 +144,9 @@ def build_init(args: PmbArgs):
def checksum(args: PmbArgs):
for package in args.packages:
if args.verify:
pmb.build.checksum.verify(args, package)
pmb.build.checksum.verify(package)
else:
pmb.build.checksum.update(args, package)
pmb.build.checksum.update(package)
def sideload(args: PmbArgs):