[elbe-devel] [PATCH v2 59/75] pkgarchive: use f-strings

Daniel Braunwarth daniel at braunwarth.dev
Wed Nov 2 20:14:41 CET 2022


Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
 elbepack/pkgarchive.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/pkgarchive.py b/elbepack/pkgarchive.py
index 03e30bcc9..92babf719 100644
--- a/elbepack/pkgarchive.py
+++ b/elbepack/pkgarchive.py
@@ -61,7 +61,7 @@ def gen_binpkg_archive(ep, repodir):
                 logging.warning('Package file "%s" not found in var/cache/apt/archives, downloading it',
                                 filename)
                 abs_path = ep.buildenv.rfs.fname(rel_path)
-                pkg_id = "%s-%s" % (pkg.name, pkg.installed_version)
+                pkg_id = f"{pkg.name}-{pkg.installed_version}"
                 try:
                     abs_path = c.download_binary(pkg.name,
                                                  '/var/cache/elbe/pkgarchive',
-- 
2.38.1



More information about the elbe-devel mailing list