From d4d638289743bcccd6c457b01f0d83869ba232af Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Tue, 18 Jun 2024 23:08:37 +0200 Subject: [PATCH] helpers: pkgrel_bump: fix formatting (MR 2252) f-strings Signed-off-by: Caleb Connolly --- pmb/helpers/pkgrel_bump.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pmb/helpers/pkgrel_bump.py b/pmb/helpers/pkgrel_bump.py index 0b475395..2fe85822 100644 --- a/pmb/helpers/pkgrel_bump.py +++ b/pmb/helpers/pkgrel_bump.py @@ -36,13 +36,12 @@ def package(args: PmbArgs, pkgname, reason="", dry=False): pmb.helpers.file.replace(path, old, new) # Verify - del pmb.helpers.other.cache["apkbuild"][path] + pmb.parse.apkbuild.cache_clear() apkbuild = pmb.parse.apkbuild(path) if int(apkbuild["pkgrel"]) != pkgrel_new: - raise RuntimeError("Failed to bump pkgrel for package '" + pkgname + - "'. Make sure that there's a line with exactly the" - " string '" + old + "' and nothing else in: " + - path) + raise RuntimeError(f"Failed to bump pkgrel for package '{pkgname}'." + " Make sure that there's a line with exactly the" + f" string '{old.strip()}' and nothing else in: {path}") def auto_apkindex_package(args: PmbArgs, arch, aport, apk, dry=False):