Skip to content

Commit

Permalink
[Multiboot] little optical change
Browse files Browse the repository at this point in the history
  • Loading branch information
koivo committed Apr 10, 2024
1 parent 54500b8 commit c063cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Tools/Multiboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ def GetImagelist():
word = "build="
if row.find(word) != -1:
buildnumber = row.split('=')[1]
imagelist[slot] = {'imagename': "%s - Build #%s (%s)" % (open(os.path.join(imagedir, "etc/issue")).readlines()[-2].capitalize().strip()[:-6], buildnumber.strip(), date)}
imagelist[slot] = {'imagename': "%s \t Build #%s \t(%s)" % (open(os.path.join(imagedir, "etc/issue")).readlines()[-2].capitalize().strip()[:-6], buildnumber.strip(), date)}
if os.path.exists(os.path.join(imagedir, "etc/image-version")):
with open(os.path.join(imagedir, "etc/image-version"), 'r') as fp:
lines = fp.readlines()
for row in lines:
word = 'imagetype'
if row.find(word) != -1:
imagetype = row.split('=')[1]
imagelist[slot] = {'imagename': "%s - %s (%s)" % (open(os.path.join(imagedir, "etc/issue")).readlines()[-2].capitalize().strip()[:-6], imagetype.strip(), date)}
imagelist[slot] = {'imagename': "%s \t %s \t(%s)" % (open(os.path.join(imagedir, "etc/issue")).readlines()[-2].capitalize().strip()[:-6], imagetype.strip(), date)}
break
elif os.path.isfile(os.path.join(imagedir, 'usr/bin/enigma2.bak')):
imagelist[slot] = {'imagename': _("Deleted image")}
Expand Down

0 comments on commit c063cbf

Please sign in to comment.