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

63 lines
1.8 KiB
YAML

Categories:
- Development
- Internet
License: Apache-2.0
SourceCode: https://github.com/ekx/GitLabAndroid
IssueTracker: https://github.com/ekx/GitLabAndroid/issues
Changelog: https://github.com/ekx/GitLabAndroid/blob/HEAD/changelog.txt
AutoName: GitLab
Description: |-
Unofficial client for accounts and git repositories hosted at
<a href="https://www.gitlab.com">GitLab</a>.
RepoType: git
Repo: https://github.com/ekx/GitLabAndroid
Builds:
- versionName: 1.5.6
versionCode: 36
disable: https://github.com/ekx/GitLabAndroid/issues/10
commit: 1.5.6
subdir: app
gradle:
- yes
srclibs:
- GravatarAndroid@v1.0
rm:
- app/libs/*jar
- app/native-libs/armeabi/libbypass.so
- app/native-libs/armeabi-v7a/libbypass.so
- app/native-libs/mips/libbypass.so
- app/native-libs/x86/libbypass.so
prebuild:
- touch signing.gradle
- cp -fR $$GravatarAndroid$$/gravatar-android/src/fr src/main/java/
- sed -i -e 's/compile fileTree/compile "in.uncod.android.bypass:bypass:1.1"\n compile
fileTree/g' build.gradle
- versionName: 1.6.0
versionCode: 37
disable: https://github.com/ekx/GitLabAndroid/issues/10
commit: 1.6.0
subdir: app
gradle:
- yes
srclibs:
- GravatarAndroid@v1.0
rm:
- app/libs/*jar
- app/native-libs/armeabi/libbypass.so
- app/native-libs/armeabi-v7a/libbypass.so
- app/native-libs/mips/libbypass.so
- app/native-libs/x86/libbypass.so
prebuild:
- touch signing.gradle
- cp -fR $$GravatarAndroid$$/gravatar-android/src/fr src/main/java/
- sed -i -e 's/compile fileTree/compile "in.uncod.android.bypass:bypass:1.1"\n compile
fileTree/g' build.gradle
AutoUpdateMode: None
UpdateCheckMode: Tags
CurrentVersion: 1.6.0
CurrentVersionCode: 37