Merge branch 'windows-path-split-fix' into 'master'

Fix path splitting error on Windows

See merge request fdroid/fdroidserver!1452
This commit is contained in:
Hans-Christoph Steiner 2024-03-13 19:46:08 +00:00
commit 9105738427
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ def parse_mirrors_config(mirrors):
def file_entry(filename, hash_value=None):
meta = {}
meta["name"] = "/" + filename.split("/", 1)[1]
meta["name"] = "/" + Path(filename).as_posix().split("/", 1)[1]
meta["sha256"] = hash_value or common.sha256sum(filename)
meta["size"] = os.stat(filename).st_size
return meta