fdroiddata/srclibs/MSQLite.yml
Hans-Christoph Steiner a6097d9552 remove blank entries from srclibs
```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)
```
2020-06-02 17:12:24 +02:00

2 lines
58 B
YAML

RepoType: git
Repo: https://github.com/mick88/MSQLite.git