aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-04-13 23:38:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-19 19:39:55 +0300
commitf2f08e0758243a820fe47128ffabaa474c0e86e7 (patch)
tree45563c74dbbf7a0f546443b469a23541c9ac9b00 /bpkg/package.cxx
parente958b63712f9a0ff4b523765d2fe12b58aa97fe0 (diff)
Implement git repository handling transition (phase 0)
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r--bpkg/package.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx
index 08e71f9..2880368 100644
--- a/bpkg/package.cxx
+++ b/bpkg/package.cxx
@@ -65,6 +65,12 @@ namespace bpkg
const auto& ps (r->prerequisites);
const auto& cs (r->complements);
+ // @@ The same repository can be present in the location set multiple times
+ // with different fragment values. Given that we may traverse the same
+ // repository tree multiple times, which is inefficient but harmless.
+ // Let's leave it this way for now as it likely to be changed with
+ // adding support for repository fragment objects.
+ //
for (const package_location& pl: ap->locations)
{
const lazy_shared_ptr<repository>& lr (pl.repository);