fdroiddata/metadata/org.secuso.privacyfriendlyruler.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

51 lines
1.4 KiB
YAML

Categories:
- Multimedia
License: GPL-3.0-only
AuthorName: SECUSO - Security Usability Society
AuthorEmail: contact@secuso.org
AuthorWebSite: https://secuso.aifb.kit.edu/english/
WebSite: https://secuso.org/pfa
SourceCode: https://github.com/SecUSo/privacy-friendly-ruler
IssueTracker: https://github.com/SecUSo/privacy-friendly-ruler/issues
Changelog: https://github.com/SecUSo/privacy-friendly-ruler/blob/HEAD/CHANGELOG.md
AutoName: Ruler
Description: |-
Privacy Friendly Ruler turns the device screen into a ruler for quick
measurements on the go. It can display rulers with either inch or centimeters as
metric. Furthermore, it can display a protractor.
This app is optimized regarding the user's privacy. It doesn't use any tracking
mechanisms, neither it displays any advertisement. It belongs to the Privacy
Friendly Apps group developed by the <a href="https://secuso.org/">SECUSO research group</a>
at Technische Universität Darmstadt, Germany.
RepoType: git
Repo: https://github.com/SecUSo/privacy-friendly-ruler
Builds:
- versionName: '1.0'
versionCode: 1
commit: v1.0
subdir: app
gradle:
- yes
- versionName: 1.0.1
versionCode: 2
commit: v1.0.1
subdir: app
gradle:
- yes
- versionName: '1.1'
versionCode: 3
commit: v1.1
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.1'
CurrentVersionCode: 3