aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_execute_resolution.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_execute_resolution.cc')
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index 7b44d448c..531f5196f 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -601,7 +601,7 @@ namespace
const std::shared_ptr<Environment> & env,
const ExecuteResolutionCommandLine & cmdline)
{
- if (cmdline.execution_options.a_preserve_world.specified())
+ if (cmdline.execution_options.a_preserve_world.specified() || cmdline.execution_options.a_fetch.specified())
return;
cout << endl << c::bold_green() << "Updating world" << c::normal() << endl << endl;
@@ -1200,6 +1200,9 @@ namespace
}
}
+ if (want && cmdline.execution_options.a_fetch.specified())
+ want = simple_visitor_cast<const FetchJob>(*job);
+
int current_global_retcode;
{
Lock lock(global_retcode_mutex);