aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 22:21:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 22:21:30 +0000
commita7d1a3d9a271be81af6b01ef310147fd2aa35c94 (patch)
tree52a58c2f12643f62e4e4840aee5885b8ad26842b /src/clients/cave
parente15f518956383d4dc22bee5c13939f8de247a46d (diff)
downloadpaludis-a7d1a3d9a271be81af6b01ef310147fd2aa35c94.tar.gz
paludis-a7d1a3d9a271be81af6b01ef310147fd2aa35c94.tar.xz
Let sync take a suffix
Diffstat (limited to 'src/clients/cave')
-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;
}