diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-02 20:02:09 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-03 17:34:27 +0300 |
commit | d4e409e3ceb7eadd9cf94b1d1f99ac04fec570ee (patch) | |
tree | 837cc261b0a0fa38ec75950acc523b864cad31a0 /bpkg/rep-create.cxx | |
parent | 6cb3810952e4a29023bce6682608a1bee40ca910 (diff) |
Add support for dependent repository trust
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r-- | bpkg/rep-create.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index ba2eb73..2de1de1 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -227,7 +227,8 @@ namespace bpkg ofs.close (); } - const optional<string>& cert (rms.back ().certificate); + const optional<string>& cert (find_base_repository (rms).certificate); + if (cert) { const string& key (o.key ()); |