mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
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:
commit
9105738427
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue