mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
update: create 'archive/' if needed when moving APKs
Normally, just 'repo/' is created by default, e.g. `fdroid init`. If APKs are dumped into 'repo/', then have invalid signatures, then they'll be automatically moved to 'archive/', which therefore needs to exist.
This commit is contained in:
parent
746d4bd4cf
commit
39fd664778
@ -1493,6 +1493,8 @@ def move_apk_between_sections(from_dir, to_dir, apk):
|
||||
if ignore_missing and not os.path.exists(from_path):
|
||||
return
|
||||
to_path = os.path.join(to_dir, filename)
|
||||
if not os.path.exists(to_dir):
|
||||
os.mkdir(to_dir)
|
||||
shutil.move(from_path, to_path)
|
||||
|
||||
if from_dir == to_dir:
|
||||
|
Loading…
Reference in New Issue
Block a user