Skip to content

Commit adfb142

Browse files
committed
Stop duplicating additionaltags for the sle15 container
the code was assuming that first path is always self.name, which is not the case for the sle15 container as it defines the first path to be the "extra" compatibility path.
1 parent a05ec73 commit adfb142

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/bci_build/package/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,11 @@ def kiwi_additional_tags(self) -> str | None:
11851185
11861186
"""
11871187
extra_tags: list[str] = []
1188-
for buildtag in self.build_tags[1:]:
1188+
all_tags = self.build_tags
1189+
first_path = all_tags[0].partition(":")[0]
1190+
for buildtag in all_tags[1:]:
11891191
path, tag = buildtag.split(":")
1190-
if path.endswith(self.name):
1192+
if path.endswith(first_path):
11911193
extra_tags.append(tag)
11921194

11931195
return ",".join(extra_tags) if extra_tags else None

0 commit comments

Comments
 (0)