aboutsummaryrefslogtreecommitdiff
path: root/bdep/sync.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-24 15:16:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-24 15:16:42 +0200
commitf96f707ae4598e2ecc616a6e2aa47ace943c7eb5 (patch)
treee8ebc2fbece9a67b2533a8fc166a9384a73d9e19 /bdep/sync.cxx
parent04be612dead00c36c8c6ff748c252e8e5d3b1e5c (diff)
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).
Diffstat (limited to 'bdep/sync.cxx')
-rw-r--r--bdep/sync.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx
index 3c51882..1ed3c12 100644
--- a/bdep/sync.cxx
+++ b/bdep/sync.cxx
@@ -604,6 +604,29 @@ namespace bdep
strings () /* dep_pkgs */);
}
+ void
+ cmd_sync_implicit (const common_options& co,
+ const dir_path& cfg,
+ bool fetch,
+ bool yes,
+ bool name_cfg)
+ {
+ if (!synced (cfg, true /* implicit */))
+ cmd_sync (co,
+ cfg,
+ dir_path (),
+ nullptr,
+ strings (),
+ true /* implicit */,
+ fetch,
+ yes,
+ name_cfg,
+ nullopt /* upgrade */,
+ nullopt /* recursive */,
+ package_locations () /* prj_pkgs */,
+ strings () /* dep_pkgs */);
+ }
+
int
cmd_sync (cmd_sync_options&& o, cli::group_scanner& args)
{