From b83a9bbdb0407c198e615e61491e1f8492ae5dc9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Oct 2015 08:45:27 +0200 Subject: Add repository location to package, minor cleanups --- bpkg/pkg-unpack.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-unpack.cxx') diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx index 5fc5f0b..b6decca 100644 --- a/bpkg/pkg-unpack.cxx +++ b/bpkg/pkg-unpack.cxx @@ -57,12 +57,14 @@ namespace bpkg if (ad.sub (ac)) ad = ad.leaf (ac); - // Add the package to the configuration. + // Add the package to the configuration. Use the special root + // repository as the repository of this package. // shared_ptr p (new package { move (m.name), move (m.version), state::unpacked, + repository_location (), nullopt, // No archive false, // Don't purge archive. move (ad), -- cgit v1.1