From f96f707ae4598e2ecc616a6e2aa47ace943c7eb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Oct 2019 15:16:42 +0200 Subject: Add --forward option to bdep-submit This option instructs the submit command to use each package's forwarded configuration in order to prepare the distributions. This help with setups where there is no single configuration that had all the packages (such as a build system module project). --- bdep/project.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'bdep/project.cxx') diff --git a/bdep/project.cxx b/bdep/project.cxx index 7f80c9f..d8cfc8a 100644 --- a/bdep/project.cxx +++ b/bdep/project.cxx @@ -5,7 +5,6 @@ #include #include -#include #include #include @@ -406,10 +405,8 @@ namespace bdep } } - // Obtain build2 project info for package source or output directories. - // - static b_project_info - package_info (const common_options& o, const dir_path& d) + package_info + package_b_info (const common_options& o, const dir_path& d) { try { @@ -437,7 +434,7 @@ namespace bdep standard_version package_version (const common_options& o, const dir_path& d) { - b_project_info pi (package_info (o, d)); + package_info pi (package_b_info (o, d)); if (pi.version.empty ()) fail << "empty version for package directory " << d; @@ -456,7 +453,7 @@ namespace bdep // Note: the package directory inside the configuration is a bit of an // assumption. // - b_project_info pi (package_info (o, (dir_path (cfg) /= p.string ()))); + package_info pi (package_b_info (o, (dir_path (cfg) /= p.string ()))); if (pi.version.empty ()) fail << "empty version for package " << p; -- cgit v1.1