mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-13 10:40:29 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue