From f2f08e0758243a820fe47128ffabaa474c0e86e7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 13 Apr 2018 23:38:12 +0300 Subject: Implement git repository handling transition (phase 0) --- bpkg/package.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bpkg/package.cxx') 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& lr (pl.repository); -- cgit v1.1