chiark / gitweb /
allow metadata to be embedded in source repos via .fdroid.yml
authorHans-Christoph Steiner <hans@eds.org>
Mon, 7 Nov 2016 20:47:53 +0000 (21:47 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 16 Nov 2016 22:28:03 +0000 (23:28 +0100)
commita4e4310803a463433eb7515c2038a8d3ea44edc4
treea179b4c2ebe25b5d025fdbedca07c17fe2425a38
parentb4a39ee27250e8c98023d673e9bc4d75f3b4fb5f
allow metadata to be embedded in source repos via .fdroid.yml

This allows a source repo to include a complete metadata file so that it
can be built directly in place using `fdroid build`.  If that app is then
included in fdroiddata, it will first load the source repo type and URL
from fdroiddata, then read .fdroid.yml if it exists, then include the rest
of the metadata as specified in fdroiddata, so that fdroiddata has
precedence over the metadata in the source code.

This lets `fdroid build` apps without having a whole fdroiddata setup, but
instead just directly in place in the source code.  This also lets devs
optionallu maintain the fdroid metadata as part of their app, rather than
in fdroiddata without loosing any control.  This should make it easier to
spread around the maintenance load.
fdroidserver/build.py
fdroidserver/common.py
fdroidserver/metadata.py
tests/import.TestCase
tests/metadata/info.guardianproject.checkey.txt [new file with mode: 0644]
tests/metadata/org.fdroid.ci.test.app.txt [new file with mode: 0644]
tests/metadata/raw.template.txt [new file with mode: 0644]
tests/run-tests