aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-status.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-status.cxx')
-rw-r--r--bpkg/pkg-status.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bpkg/pkg-status.cxx b/bpkg/pkg-status.cxx
index ea39b25..f621281 100644
--- a/bpkg/pkg-status.cxx
+++ b/bpkg/pkg-status.cxx
@@ -66,7 +66,8 @@ namespace bpkg
bool known (false);
bool build (false);
{
- shared_ptr<repository> rep (db.load<repository> ("")); // Root.
+ shared_ptr<repository_fragment> root (
+ db.load<repository_fragment> (""));
using query = query<available_package>;
@@ -74,7 +75,7 @@ namespace bpkg
{
auto r (db.query<available_package> (q));
known = !r.empty ();
- build = filter_one (rep, move (r)).first != nullptr;
+ build = filter_one (root, move (r)).first != nullptr;
}
if (known)
@@ -109,7 +110,7 @@ namespace bpkg
pointer_result (
db.query<available_package> (q)))
{
- bool build (filter (rep, ap));
+ bool build (filter (root, ap));
apkgs.push_back (apkg {move (ap), build});
}
}