fdroiddata/metadata/com.twobuntu.twobuntu.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

41 lines
1.1 KiB
YAML

Categories:
- Reading
- Internet
License: MIT
SourceCode: https://github.com/2buntu/2buntu-android-app
IssueTracker: https://github.com/2buntu/2buntu-android-app/issues
AutoName: 2buntu
Summary: View 2buntu website
Description: Browse and read articles on the <a href="https://2buntu.com/">2buntu
website</a>.
RepoType: git
Repo: https://github.com/2buntu/2buntu-android-app
Builds:
- versionName: 1.1.7
versionCode: 14
commit: 4b05f1b904b40a88625dbc2cb80ad46dcf5df4e1
srclibs:
- CommonsIO@2.4
- ImageLoader@v1.9.3
extlibs:
- android/android-support-v13.jar
prebuild:
- sed -i -e '/ic_logo/d' AndroidManifest.xml
- pushd $$CommonsIO$$
- $$MVN3$$ package
- popd
- cp $$CommonsIO$$/target/commons-io-2.4.jar libs/
- pushd $$ImageLoader$$
- $$MVN3$$ package
- popd
- cp $$ImageLoader$$/target/universal-image-loader-1.9.3.jar libs/
- echo -e 'java.source=1.7\njava.target=1.7' >> ant.properties
ArchivePolicy: 0 versions
AutoUpdateMode: None
UpdateCheckMode: RepoManifest
CurrentVersion: 1.1.7
CurrentVersionCode: 14