bin/local-pull: Clarify docs, add more tests for corrupted local pulls
authorColin Walters <walters@verbum.org>
Tue, 5 Sep 2017 19:01:12 +0000 (15:01 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 7 Sep 2017 15:30:11 +0000 (15:30 +0000)
commit9c4106f166e3b2fe40f9a3df5169df0d927974b1
tree82a934e1b86fd2ca8868094840f2a6847ff68420
parent732891efc28ade8b0f273c3b2cdb4262af54c277
bin/local-pull: Clarify docs, add more tests for corrupted local pulls

I was reading the pull-local command docs and realized it was somewhat unclear
that `--untrusted` *only* applied to local repo pulls; in other words that we
always treat non-local pulls as untrusted.

Tweak the docstring, and add tests that verify this explicitly.

Closes: #1130
Approved by: jlebon
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-pull.c
tests/test-pull-corruption.sh