aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-create.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-02 20:02:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-03 17:34:27 +0300
commitd4e409e3ceb7eadd9cf94b1d1f99ac04fec570ee (patch)
tree837cc261b0a0fa38ec75950acc523b864cad31a0 /bpkg/rep-create.cxx
parent6cb3810952e4a29023bce6682608a1bee40ca910 (diff)
Add support for dependent repository trust
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r--bpkg/rep-create.cxx3
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 ());