diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-12 11:17:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-12 11:17:21 +0200 |
commit | 5dcbecfd8b83f516c067780214f06321f03d1cce (patch) | |
tree | 20dcd6d7c602c4fcc7432f46336086156c929067 /bdep/project.cxx | |
parent | 4d181c3aad97f8ee224666ce5c757036c5f610d5 (diff) |
Initial sync implementation
Diffstat (limited to 'bdep/project.cxx')
-rw-r--r-- | bdep/project.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/bdep/project.cxx b/bdep/project.cxx index d3e3f11..ebc466c 100644 --- a/bdep/project.cxx +++ b/bdep/project.cxx @@ -181,7 +181,9 @@ namespace bdep } project_packages - find_project_packages (const project_options& po, bool ignore_packages) + find_project_packages (const project_options& po, + bool ignore_packages, + bool load_packages) { project_packages r; @@ -268,14 +270,7 @@ namespace bdep return d; }; - if (r.packages.empty ()) - { - // Name is to be extracted later. - // - for (package_manifest& m: ms) - r.packages.push_back (package_location {"", location (m)}); - } - else + if (!r.packages.empty ()) { // It could be costly to normalize the location for each // comparison. We, however, do not expect more than a handful of @@ -296,6 +291,13 @@ namespace bdep } } } + else if (load_packages) + { + // Name is to be extracted later. + // + for (package_manifest& m: ms) + r.packages.push_back (package_location {"", location (m)}); + } } else { |