lib/pull: Refactor to use OstreeRepoImportFlags internally
authorColin Walters <walters@verbum.org>
Sat, 23 Sep 2017 13:59:53 +0000 (09:59 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 26 Sep 2017 18:07:43 +0000 (18:07 +0000)
commitb6507a930e2604602f9911794c54dc7ba48832a3
tree4079b2f548db176f1ab2ce9bdc99105526259c86
parent72ddd4f4198ead6237bcdb0f58d2d43e160e1cb2
lib/pull: Refactor to use OstreeRepoImportFlags internally

Rather than carrying two booleans, just convert `OstreeRepoPullFlags`
into `OstreeRepoImportFlags`.  This allows us to drop an internal
wrapper function and just directly call `_ostree_repo_import_object()`.

This though reveals that our mirroring import path doesn't check the
`OSTREE_REPO_PULL_FLAGS_UNTRUSTED` flag...it probably should.

Prep for further work.

Closes: #1212
Approved by: jlebon
src/libostree/ostree-repo-pull.c