aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-fetch.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-12 19:47:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-12 20:11:46 +0300
commitb1becabe15972d3ddc7cf14e7840e03766ea9600 (patch)
treecd8d1b93432220a0541a87311851729732cfdd75 /bpkg/rep-fetch.cxx
parent94bd8f38d5cbecd479e26928ca110f0bf1f64519 (diff)
Adapt to butl::b_info() API change
Diffstat (limited to 'bpkg/rep-fetch.cxx')
-rw-r--r--bpkg/rep-fetch.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx
index 30c429f..17536da 100644
--- a/bpkg/rep-fetch.cxx
+++ b/bpkg/rep-fetch.cxx
@@ -331,8 +331,15 @@ namespace bpkg
pds.push_back (move (d));
}
+ // Note that for the directory-based repositories we also query
+ // subprojects since the package information will be used for the
+ // subsequent package_iteration() call (see below).
+ //
if (bs)
- pvs = package_versions (co, pds);
+ pvs = package_versions (co, pds,
+ (rl.directory_based ()
+ ? b_info_flags::subprojects
+ : b_info_flags::none));
}
// Parse package manifests, fixing up their versions.