Skip to content

Commit 257af06

Browse files
hack/build-image: use constants already defined in the code
Signed-off-by: John Mulligan <[email protected]>
1 parent df1cad4 commit 257af06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/build-image

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ def add_special_tags(img, distro_qualified=True):
463463
img.additional_tags.append((NIGHTLY, QUAL_NONE))
464464
if not distro_qualified:
465465
return # skip creating "distro qualified" tags
466-
if img.arch == host_arch() and img.pkg_source == "default":
466+
if img.arch == host_arch() and img.pkg_source == DEFAULT:
467467
img.additional_tags.append((f"{img.distro}-{LATEST}", QUAL_DISTRO))
468-
if img.arch == host_arch() and img.pkg_source == "nightly":
468+
if img.arch == host_arch() and img.pkg_source == NIGHTLY:
469469
img.additional_tags.append((f"{img.distro}-{NIGHTLY}", QUAL_DISTRO))
470470

471471

0 commit comments

Comments
 (0)