Skip to content

Commit

Permalink
gen_mirror_json: explicitly specify we are reading in binary mode for…
Browse files Browse the repository at this point in the history
… builds

Signed-off-by: Han Sol Jin <[email protected]>
  • Loading branch information
lifehackerhansol committed May 28, 2024
1 parent 023b318 commit 924db5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen_mirror_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
builds = {}

for f in [os.path.join(dp, f) for dp, dn, fn in os.walk(FILE_BASE) for f in fn]:
data = open(f)
data = open(f, 'rb')
filename = f.split('/')[-1]
# lineage-14.1-20171129-nightly-hiaeul-signed.zip
_, version, builddate, buildtype, device = os.path.splitext(filename)[0].split('-')
Expand Down

0 comments on commit 924db5b

Please sign in to comment.