aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-build.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-07-28 22:04:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-07-31 19:35:21 +0300
commit67d42b48930f65a7e270e153f1ca627c5241d17b (patch)
tree817d36b4718793b6475cfdf59fd1ffe2d0b9e344 /bpkg/pkg-build.cxx
parentda6d239d0771142b795d18105aac8d130e85c5ba (diff)
Fix unexpected 'no package available for dependency' error when building from archives (GH issue #303)
Diffstat (limited to 'bpkg/pkg-build.cxx')
-rw-r--r--bpkg/pkg-build.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index 9a73ea6..46569df 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -2946,6 +2946,8 @@ namespace bpkg
af = root;
ap = make_shared<available_package> (move (m));
ap->locations.push_back (package_location {root, move (a)});
+
+ existing_packages.push_back (make_pair (ref (*pdb), ap));
}
}
catch (const invalid_path&)
@@ -3037,6 +3039,8 @@ namespace bpkg
ap = make_shared<available_package> (move (m));
af = root;
ap->locations.push_back (package_location {root, move (d)});
+
+ existing_packages.push_back (make_pair (ref (*pdb), ap));
}
}
catch (const invalid_path&)