fdroiddata/metadata/com.xenris.liquidwarsos.yml
Hans-Christoph Steiner cf4e8a40ff convert all MediaWiki links to HTML links
```python
import yaml, glob, re, os
from fdroidserver import metadata

pat = re.compile(r'\[(https?://[^ \]]+)\s+([^\]]+)\]')

for f in glob.glob('metadata/*.yml'):
    with open(f) as fp:
        data = yaml.load(fp)
    description = data.get('Description', '')
    for m in pat.finditer(data.get('Description', '')):
        link = m.group(1)
        text = m.group(2)
        print(f, link, text, flush=True)
        description = description.replace(m.group(), '<a href="%s">%s</a>' % (link, text))
    data['Description'] = description
    app = metadata.App(data)
    metadata.write_metadata(f, app)
```

```
sed -i 's,^      - true,      - yes,' metadata/*.yml
sed -i 's,^      - false,      - no,' metadata/*.yml
```

closes fdroid-website#510
2020-12-09 19:10:44 +01:00

34 lines
843 B
YAML

Categories:
- Games
License: GPL-3.0-or-later
SourceCode: https://github.com/xenris/liquid-wars-android
IssueTracker: https://github.com/xenris/liquid-wars-android/issues
AutoName: Liquid Wars OS
Description: |-
Liquid Wars is a complete rewrite and redesign of the original game
<a href="http://www.ufoot.org/liquidwar/">Liquid War</a>, but has been designed for the
Android operating system.
RepoType: git
Repo: https://github.com/xenris/liquid-wars-android.git
Builds:
- versionName: '1.41'
versionCode: 10
commit: 58b0fc41c261b91aace1f
buildjni:
- yes
ndk: r12b
- versionName: '1.42'
versionCode: 11
commit: de466e4302d5a7824cccb0c8b9c8afa685562d60
buildjni:
- yes
ndk: r12b
AutoUpdateMode: None
UpdateCheckMode: RepoManifest
CurrentVersion: '1.42'
CurrentVersionCode: 11