aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_sync.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_sync.cc')
-rw-r--r--src/clients/cave/cmd_sync.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_sync.cc b/src/clients/cave/cmd_sync.cc
index c12a848c4..6058aa56e 100644
--- a/src/clients/cave/cmd_sync.cc
+++ b/src/clients/cave/cmd_sync.cc
@@ -131,8 +131,8 @@ namespace
return "";
const std::shared_ptr<const Repository> r(env->package_database()->fetch_repository(name));
- if (r->sync_host_key())
- return r->sync_host_key()->value();
+ if (r->sync_host_key() && r->sync_host_key()->value()->end() != r->sync_host_key()->value()->find(""))
+ return r->sync_host_key()->value()->find("")->second;
else
return "";
}
@@ -193,7 +193,7 @@ namespace
{
const std::shared_ptr<Repository> repo(env->package_database()->fetch_repository(name));
- if (! repo->sync(output_manager))
+ if (! repo->sync("", output_manager))
skipped = true;
success = true;
}