mirror of
https://gitlab.com/fdroid/fdroiddata.git
synced 2025-11-07 20:46:06 +01:00
```python
import glob
import re
import yaml
print(help(yaml.dump))
for f in glob.glob('srclibs/*.yml'):
with open(f) as fp:
data = yaml.safe_load(fp)
write = False
if 'Prepare' in data:
prepare = data['Prepare'].strip()
if not prepare:
del(data['Prepare'])
write = True
if 'Subdir' in data:
subdir = data['Subdir']
if not subdir:
del(data['Subdir'])
write = True
if write:
with open(f, 'w') as fp:
yaml.dump(data, fp, default_flow_style=False, allow_unicode=True, encoding=None)
print('\n=========================================\n', f)
print('Prepare:', prepare)
```
2 lines
58 B
YAML
2 lines
58 B
YAML
RepoType: git
|
|
Repo: https://github.com/mick88/MSQLite.git
|