forked from Mirror/pmbootstrap
checksum: remove args (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
c1aa5acdaa
commit
53bdb523e3
3 changed files with 7 additions and 7 deletions
|
@ -12,10 +12,10 @@ import pmb.helpers.pmaports
|
||||||
from pmb.core import Chroot
|
from pmb.core import Chroot
|
||||||
|
|
||||||
|
|
||||||
def update(args: PmbArgs, pkgname):
|
def update(pkgname):
|
||||||
"""Fetch all sources and update the checksums in the APKBUILD."""
|
"""Fetch all sources and update the checksums in the APKBUILD."""
|
||||||
pmb.build.init_abuild_minimal()
|
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)
|
logging.info("(native) generate checksums for " + pkgname)
|
||||||
pmb.chroot.user(["abuild", "checksum"],
|
pmb.chroot.user(["abuild", "checksum"],
|
||||||
working_dir=Path("/home/pmos/build"))
|
working_dir=Path("/home/pmos/build"))
|
||||||
|
@ -26,10 +26,10 @@ def update(args: PmbArgs, pkgname):
|
||||||
pmb.helpers.run.user(["cp", source, target])
|
pmb.helpers.run.user(["cp", source, target])
|
||||||
|
|
||||||
|
|
||||||
def verify(args: PmbArgs, pkgname):
|
def verify(pkgname):
|
||||||
"""Fetch all sources and verify their checksums."""
|
"""Fetch all sources and verify their checksums."""
|
||||||
pmb.build.init_abuild_minimal()
|
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)
|
logging.info("(native) verify checksums for " + pkgname)
|
||||||
|
|
||||||
# Fetch and verify sources, "fetch" alone does not verify them:
|
# Fetch and verify sources, "fetch" alone does not verify them:
|
||||||
|
|
|
@ -164,7 +164,7 @@ def menuconfig(args: PmbArgs, pkgname: str, use_oldconfig):
|
||||||
config = "config-" + apkbuild["_flavor"] + "." + arch
|
config = "config-" + apkbuild["_flavor"] + "." + arch
|
||||||
target = aport / config
|
target = aport / config
|
||||||
pmb.helpers.run.user(["cp", source, target])
|
pmb.helpers.run.user(["cp", source, target])
|
||||||
pmb.build.checksum.update(args, pkgname)
|
pmb.build.checksum.update(pkgname)
|
||||||
|
|
||||||
# Check config
|
# Check config
|
||||||
pmb.parse.kconfig.check(args, apkbuild["_flavor"], details=True)
|
pmb.parse.kconfig.check(args, apkbuild["_flavor"], details=True)
|
||||||
|
|
|
@ -144,9 +144,9 @@ def build_init(args: PmbArgs):
|
||||||
def checksum(args: PmbArgs):
|
def checksum(args: PmbArgs):
|
||||||
for package in args.packages:
|
for package in args.packages:
|
||||||
if args.verify:
|
if args.verify:
|
||||||
pmb.build.checksum.verify(args, package)
|
pmb.build.checksum.verify(package)
|
||||||
else:
|
else:
|
||||||
pmb.build.checksum.update(args, package)
|
pmb.build.checksum.update(package)
|
||||||
|
|
||||||
|
|
||||||
def sideload(args: PmbArgs):
|
def sideload(args: PmbArgs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue