mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Add basic yaml metadata writing
This commit is contained in:
parent
082e275aa1
commit
1aa891c4fd
3 changed files with 160 additions and 96 deletions
|
@ -369,10 +369,10 @@ def read_app_args(args, allapps, allow_vercodes=False):
|
|||
|
||||
|
||||
def get_extension(filename):
|
||||
_, ext = os.path.splitext(filename)
|
||||
base, ext = os.path.splitext(filename)
|
||||
if not ext:
|
||||
return ''
|
||||
return ext.lower()[1:]
|
||||
return base, ''
|
||||
return base, ext.lower()[1:]
|
||||
|
||||
|
||||
def has_extension(filename, ext):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue