mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-14 10:11:43 +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
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
Categories:
|
|
- System
|
|
License: MIT
|
|
SourceCode: https://github.com/p0isonra1n/Doze-Settings-Editor
|
|
IssueTracker: https://github.com/p0isonra1n/Doze-Settings-Editor/issues
|
|
|
|
AutoName: Doze Editor
|
|
Description: |-
|
|
Simple editor of the settings or parameters which affect the operation of Doze.
|
|
A list of parameters and corresponding descriptions is available in the
|
|
<a href="https://github.com/p0isonra1n/Doze-Settings-Editor/blob/HEAD/README.md">README</a>.
|
|
|
|
RequiresRoot: 'yes'
|
|
|
|
RepoType: git
|
|
Repo: https://github.com/p0isonra1n/Doze-Settings-Editor
|
|
|
|
Builds:
|
|
- versionName: '6.0'
|
|
versionCode: 6
|
|
disable: Missing res, see https://github.com/p0isonra1n/Doze-Settings-Editor/issues/2
|
|
commit: f424bce4641dfd14181d5770701405417f6114d6
|
|
subdir: app
|
|
gradle:
|
|
- yes
|
|
srclibs:
|
|
- RootTools@4.2
|
|
- RootShell@1.3
|
|
rm:
|
|
- app/libs/*.jar
|
|
prebuild:
|
|
- sed -i -e '/RootShell/d' build.gradle
|
|
- cp -fR $$RootShell$$/src/com src/main/java/
|
|
|
|
AutoUpdateMode: None
|
|
UpdateCheckMode: RepoManifest
|
|
CurrentVersion: '6.0'
|
|
CurrentVersionCode: 6
|