Skip to content

Commit

Permalink
[Multiboot] avoid double spaces in slotname if a variable is empty
Browse files Browse the repository at this point in the history
Huevos committed Jan 3, 2024
1 parent c0d4673 commit 3b6330f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Tools/Multiboot.py
Original file line number Diff line number Diff line change
@@ -219,7 +219,7 @@ def createInfo(slot, imagedir="/"):
BuildVer = BoxInfo.getItem("imagebuild")
BuildDate = VerDate(imagedir)
BuildDev = str(BoxInfo.getItem("imagedevbuild")).zfill(3) if BuildType != "rel" else ""
return "%s %s %s %s %s (%s)" % (Creator, BuildImgVersion, BuildType, BuildVer, BuildDev, BuildDate)
return " ".join([x for x in (Creator, BuildImgVersion, BuildType, BuildVer, BuildDev, "(%s)" % BuildDate) if x])


def VerDate(imagedir):

0 comments on commit 3b6330f

Please sign in to comment.