Skip to content

Commit

Permalink
Simplify the way the line with the checksum is parsed
Browse files Browse the repository at this point in the history
This line should simply start following the specs with lower case
checksum with the = directly behind it and we do not need to strip it as
that is the definition. So we can simplify this check
  • Loading branch information
Littlesat committed Dec 23, 2023
1 parent 35c2d8e commit 431de3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/SystemInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, root=""):
file = root + "/usr/lib/enigma.info"
if fileExists(file):
for line in open(file, 'r').readlines():
if line.strip().lower().startswith("checksum"):
if line.startswith("checksum="):
self.boxInfo["checksum"] = md5(bytearray(checksumcollectionstring, "UTF-8", errors="ignore")).hexdigest() == line.strip().split('=')[1]
break
checksumcollectionstring += line
Expand Down

0 comments on commit 431de3a

Please sign in to comment.