Skip to content

Commit d4ad0cd

Browse files
authored
Merge pull request #194 from jlin/upd8-autohash-fx80
update autohash to work with fx80 format
2 parents 958de34 + c4fca09 commit d4ad0cd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dino_engine.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ def autohash_firefox_find_hash(hash_summary, locale):
145145
for line in hash_summary.split("\n"):
146146
if locale in line:
147147
linesplit = line.split()
148-
# starting with 79.0 hashes are encoded in b'' form.
148+
# In 79.0 hashes are encoded in b'' form.
149149
# easiest way to interpret is to split it 2nd char to 66th char, since the text is
150150
# literal, and not read as an encoded string
151-
hash = linesplit[0][2:66]
151+
# hash = linesplit[0][2:66]
152+
# In 80.0 hashes are not in b'' form, so splitting at element 0 gets the hash
153+
hash = linesplit[0]
152154
return hash
153155
return False
154156

0 commit comments

Comments
 (0)