Skip to content

Commit 3964857

Browse files
hack: use constants already defined in the code
Signed-off-by: John Mulligan <[email protected]>
1 parent 3c8ac09 commit 3964857

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
@@ -473,9 +473,9 @@ def add_special_tags(img, distro_qualified=True):
473473
img.additional_tags.append((NIGHTLY, QUAL_NONE))
474474
if not distro_qualified:
475475
return # skip creating "distro qualified" tags
476-
if img.arch == host_arch() and img.pkg_source == "default":
476+
if img.arch == host_arch() and img.pkg_source == DEFAULT:
477477
img.additional_tags.append((f"{img.distro}-{LATEST}", QUAL_DISTRO))
478-
if img.arch == host_arch() and img.pkg_source == "nightly":
478+
if img.arch == host_arch() and img.pkg_source == NIGHTLY:
479479
img.additional_tags.append((f"{img.distro}-{NIGHTLY}", QUAL_DISTRO))
480480

481481

0 commit comments

Comments
 (0)