remove unused variables

This commit is contained in:
parent 4ea046dcf8
commit 3b99b6eed2

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}"