mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
update: do not replace Name/Summary from template unless blank
`fdroid nightly` needs this change so it can set the Summary using the template.
This commit is contained in:
parent
4afe5aefd5
commit
5d54446efc
@ -1670,7 +1670,7 @@ def create_metadata_from_template(apk):
|
||||
with open('template.yml') as f:
|
||||
metatxt = f.read()
|
||||
if 'name' in apk and apk['name'] != '':
|
||||
metatxt = re.sub(r'^(((Auto)?Name|Summary):).*$',
|
||||
metatxt = re.sub(r'''^(((Auto)?Name|Summary):)[ '"\.]*$''',
|
||||
r'\1 ' + apk['name'],
|
||||
metatxt,
|
||||
flags=re.IGNORECASE | re.MULTILINE)
|
||||
|
Loading…
Reference in New Issue
Block a user