diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-01 09:13:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-01 09:13:37 +0200 |
commit | 098460199c35218979e207a1709111e477ab9567 (patch) | |
tree | 55765e91a517759bf28672abeda96102f2f511c4 /bpkg/rep-fetch.cxx | |
parent | 42bbdd0e7f0d78b622697bf4d4543c1aead22ae8 (diff) |
build command genesis, some re-factoring
Diffstat (limited to 'bpkg/rep-fetch.cxx')
-rw-r--r-- | bpkg/rep-fetch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx index 1823909..f091f24 100644 --- a/bpkg/rep-fetch.cxx +++ b/bpkg/rep-fetch.cxx @@ -81,7 +81,7 @@ namespace bpkg if (pr == nullptr) { - pr.reset (new repository (move (rm.location))); + pr = make_shared<repository> (move (rm.location)); db.persist (pr); // Enter into session, important if recursive. } @@ -148,7 +148,7 @@ namespace bpkg if (p == nullptr) { - p.reset (new available_package (move (pm.name), move (pm.version))); + p = make_shared<available_package> (move (pm)); persist = true; } |