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:
parent
b4c301974e
commit
0431a51932
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue