mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-22 13:48:58 +00:00
```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
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
Categories:
|
||
- Science & Education
|
||
License: GPL-3.0-only
|
||
SourceCode: https://github.com/Amabyte/vtu-cs-lab-manual
|
||
IssueTracker: https://github.com/Amabyte/vtu-cs-lab-manual/issues
|
||
|
||
AutoName: VTU CS Lab Manual
|
||
Description: |-
|
||
VTU CS Lab Manual aims at providing Lab Manual for Computer Science students of
|
||
all semesters affiliated to <a href="http://vtu.ac.in/">Vishweshwarayya Technical
|
||
University</a>. The Lab materials provided in this app are all checked and verified
|
||
to be working. Content is derived from FSMK’s Lab manual project which is
|
||
released under CC-BY-SA.
|
||
|
||
RepoType: git
|
||
Repo: https://github.com/Amabyte/vtu-cs-lab-manual
|
||
|
||
Builds:
|
||
- versionName: '1.0'
|
||
versionCode: 1
|
||
commit: 00ee44039c5cc6bad020c19c5ec6e7817304a55e
|
||
subdir: app
|
||
gradle:
|
||
- yes
|
||
|
||
MaintainerNotes: |-
|
||
1.0,1:
|
||
* markdown4j-2.2.jar matches https://code.google.com/p/markdown4j/downloads/list
|
||
* markdown4j only provide source tarballs, no repo, so we cannot include it via
|
||
srclibs. "org.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.0" does not
|
||
work.
|
||
|
||
AutoUpdateMode: None
|
||
UpdateCheckMode: RepoManifest/free
|
||
CurrentVersion: '1.0'
|
||
CurrentVersionCode: 1
|