pmb.build.checksum: rename .check() to .update()

Rename the function to .update(), so it is clear what it does, and it is
clear what the difference to .verify() in the same file is.
This commit is contained in:
Oliver Smith 2019-05-24 22:41:31 +02:00
parent b4c301974e
commit 0431a51932
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ import pmb.helpers.run
import pmb.helpers.pmaports
def check(args, pkgname):
def update(args, pkgname):
""" Fetch all sources and update the checksums in the APKBUILD. """
pmb.build.init(args)
pmb.build.copy_to_buildpath(args, pkgname)

View File

@ -122,7 +122,7 @@ def checksum(args):
if args.verify:
pmb.build.checksum.verify(args, package)
else:
pmb.build.checksum.check(args, package)
pmb.build.checksum.update(args, package)
def chroot(args):

View File

@ -134,7 +134,7 @@ def test_aportgen_device_wizard(args, monkeypatch):
# Build the device package
pkgname = "device-testsuite-testdevice"
pmb.build.checksum.check(args, pkgname)
pmb.build.checksum.update(args, pkgname)
pmb.build.package(args, pkgname, "armhf", force=True)
# Abort on overwrite confirmation