From 0431a519321788f2ebba7eb95be690e78eff4423 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 24 May 2019 22:41:31 +0200 Subject: [PATCH] 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. --- pmb/build/checksum.py | 2 +- pmb/helpers/frontend.py | 2 +- test/test_aportgen_device_wizard.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pmb/build/checksum.py b/pmb/build/checksum.py index eeed73f1..3ea89bcc 100644 --- a/pmb/build/checksum.py +++ b/pmb/build/checksum.py @@ -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) diff --git a/pmb/helpers/frontend.py b/pmb/helpers/frontend.py index e1f96a33..3cd744e1 100644 --- a/pmb/helpers/frontend.py +++ b/pmb/helpers/frontend.py @@ -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): diff --git a/test/test_aportgen_device_wizard.py b/test/test_aportgen_device_wizard.py index a056add5..1e0366a1 100644 --- a/test/test_aportgen_device_wizard.py +++ b/test/test_aportgen_device_wizard.py @@ -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