GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free:

  • Hans-Christoph Steiner's avatar
    convert all MediaWiki links to HTML links · cf4e8a40
    Hans-Christoph Steiner authored
    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 =
            text =
            print(f, link, text, flush=True)
            description = description.replace(, '<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
com.tum.yahtzee.yml 517 Bytes