chiark / gitweb /
Merge branch 'control-errors-warnings' into 'master'
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 12 Sep 2016 14:16:42 +0000 (14:16 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 12 Sep 2016 14:16:42 +0000 (14:16 +0000)
make metadata exceptions optional based on CLI flag

In many cases, there are times where metadata errors need to be ignored, or
at least not stop the command from running.  For example, there will
inevitably be new metadata fields added, in which case a packaged version
of fdroidserver will throw errors on each one.  This adds a standard -W
flag to customize the response: ignore, default, or error.

* by default, the errors are still errors
* `fdroid readmeta -W` will just print errors
* `fdroid readmeta -Wignore` will not even print errors

https://gitlab.com/fdroid/fdroidserver/issues/150

See merge request !164


Trivial merge