remove unused variables

This commit is contained in:
Александр Степченко 2024-11-06 21:25:14 +03:00
parent c553e50d53
commit 57bcce92b5

View File

@ -113,11 +113,11 @@ class Tags:
if image.is_versioned and image.source_packages:
package_name = image.source_packages[0]
if mat := re.search("{%.*%}", package_name):
if re.search("{%.*%}", package_name):
package_name = Template(package_name).render(branch=branch).strip()
print(f"{package_name=}")
if mat := re.search("{{.*}}", package_name):
if re.search("{{.*}}", package_name):
if PKG_VERSIONS is None:
raise RuntimeError(
f"--package-versions option is not specified, required for {image.canonical_name!r}"