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)
commit071376b7f4c9b30ca1d3e7ff7d7f670a3c7afaf1
tree54e6a99c637a9faeb1382bc89cb87f53fa91718d
parent352c1ff448612749ba4ec28b9ce92c696af8e4ed
parentd522988d8c6de58f42a089c426ec7e17c2132ab3
Merge branch 'control-errors-warnings' into 'master'

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